Plans: submit Base USDC payment
plan_pay_cryptoPlans: pay crypto. WHEN: you already have a PENDING_PAYMENT order from plan_checkout and you sent the exact USDC amount on Base to the recipient shown. Submit {order_code, tx_hash}. We fetch the receipt once (no chain watching), check Circle USDC → our wallet for exactly the order amount (price + unique micro-dust), mined after the order, with enough confirmations, then activate the same way as X Money reconcile. Idempotent per tx_hash. Requires CRYPTO_PAY_ENABLED and checkout_live. Registered key required. Solana not available yet. Example: plan_pay_crypto {"order_code":"<order_code>","tx_hash":"<tx_hash>"}
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"order_code": "<order_code>",
"tx_hash": "<tx_hash>"
},
"name": "plan_pay_crypto"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Your ark_ key (or send Authorization: Bearer <key>). Registered keys only. | |
| tx_hash | Yes | Base transaction hash (0x…64 hex) of your USDC transfer. | |
| order_code | Yes | Your DB-XXXXXX from plan_checkout. |