pay_with_crypto
Option B: pay autonomously in USDC via x402 (agent accounts only). Call without payment_signature to get the payment requirements (amount, asset, pay_to, network); nothing is charged. Then sign an x402 'exact' payment and call again with payment_signature (the base64 PAYMENT-SIGNATURE value). If account credit covers the whole total, you get status 'credit_confirmation_required' and a credit_confirmation token instead; call again with confirm_credit to place the order.
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": {
"quote_id": "<quote_id>"
},
"name": "pay_with_crypto"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| quote_id | Yes | Quote id (qt_...) returned by create_quote | |
| use_credit | No | Apply account credit before charging USDC | |
| confirm_credit | No | The credit_confirmation token from the previous call, to place an order fully paid by account credit | |
| payment_signature | No | Base64 x402 PAYMENT-SIGNATURE for the requirements from the first call; omit to get the requirements |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||