Verify a USDC payment
verify_paymentVerify a USDC payment on Base before retrying a paid request; the free
pre-retry check between price_task and execute_task.
Free to call, no authentication, no side effects. Never raises - always HTTP 200 with the verdict in the body, not the status.
Parameters: the hash must be the same one set in the X-Payment header; set min_cents to the task's exact price, since a value above it makes a correct payment read as invalid.
When to use: after sending USDC, before retrying. If valid, retry with the same hash; if not, do not.
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": {
"tx_hash": "<tx_hash>"
},
"name": "verify_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx_hash | Yes | Base transaction hash (0x-prefixed) of the USDC payment to verify, e.g. the hash your wallet returned after sending. | |
| min_cents | No | Minimum acceptable payment amount in USDC cents (1 cent = 0.01 USDC). Default 1000 = 10 USDC. The payment must be worth at least this much to pass, otherwise valid is false. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | ||
| valid | No | true when the payment is confirmed | |
| amount | No | ||
| reason | No | ||
| tx_hash | No | ||
| receiver | No |