Report an x402 payment outcome
report_x402_paymentAfter your agent pays an x402 seller with any wallet, report what came back. Needs the resource URL, the settlement transaction hash and the outcome. Free; the report counts only with on-chain proof.
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": {
"url": "<url>",
"tx_hash": "<tx_hash>",
"outcome": "<outcome>"
},
"name": "report_x402_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The x402 resource URL that was paid for | |
| outcome | Yes | What came back: ok (the response was usable for its purpose), non_delivery (an error, an empty body or nothing usable after paying), wrong_goods (a usable response, but not what was asked for), overcharge (charged more than the quoted or listed price), duplicate (two settlements for one purchase) | |
| tx_hash | Yes | The settlement transaction hash on Base: the `transaction` field of the seller's PAYMENT-RESPONSE or X-PAYMENT-RESPONSE header (base64 JSON) | |
| http_status | No | The HTTP status of the paid response, if known | |
| quoted_usdc | No | The price the 402 quoted, in USDC, if known |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | Yes | The paying wallet, read from the transaction (never from the report) | |
| pay_to | Yes | ||
| reason | Yes | Why a report was rejected; null otherwise | |
| status | Yes | verified: counted once folded in (minutes); pending: checked on Base again within minutes; duplicate: this transaction was already reported; rejected: not counted, see reason | |
| sentence | Yes | The result in one sentence | |
| amount_usdc | Yes | USDC moved, read from the transaction | |
| verification_url | Yes |