Payment receipt for an x402 or USDC payment from its transaction hash
x402_receiptTurn a settled x402 or USDC payment into a receipt to file: from the transaction hash, the payer, payee, amount, time, block, status and whether it was an EIP-3009 authorization (the x402 exact scheme), on Base, Ethereum, Arbitrum, Optimism or Polygon, with a stable receipt id and a SHA-256 of a canonical text for bookkeeping. Optionally name what was bought. Never signs. Use to keep proof of a purchase after an agent pays. Example: hash=0x778c8c1b1fd1b320bf045eae0af7274e74a9e2e1f83c34ec96d9f825aea3b933. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.
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": {
"hash": "<hash>"
},
"name": "x402_receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| hash | Yes | Transaction hash of the payment (0x, 64 hex characters) | |
| chain | No | Network: base (default), eth, arb, op or polygon | |
| payTo | No | Optional: the payee, when the transaction holds several USDC transfers | |
| resource | No | Optional: the URL or item the payment bought, written into the receipt |