Top up with USDC
top_up_with_usdcAdd money to the balance by paying USDC on Base yourself, with x402 (for assistants that hold a crypto wallet). Call it without a payment to get the payment requirements back (an x402 PaymentRequired error), sign the EIP-3009 transfer, then call it again with the signed payment in _meta['x402/payment']. $1 to $200; 1 USDC adds $1. No gas needed: the facilitator pays it.
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": {
"amount_usd": "<amount_usd>"
},
"name": "top_up_with_usdc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_usd | Yes | Dollars to add, 1 to 200. |