Wallet Can Pay
can_payCheck whether a Base wallet holds enough USDC to pay an x402 amount (default $0.001). Returns balance, can_pay, shortfall. The checklist agents run before spending. Try GET /can-pay/sample.
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": {
"address": "<address>"
},
"name": "can_pay"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | No | USDC amount the agent plans to spend (default 0.001). | |
| address | Yes | EVM wallet address (0x…) to check on Base mainnet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| eth | No | ||
| usdc | Yes | ||
| address | Yes | ||
| can_pay | Yes | ||
| network | No | ||
| x402_receipt | No | ||
| shortfall_usdc | No | ||
| amount_requested | No |