Payment receipt for an x402
Payment receipt for an x402. Turn 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.
Paid test badge: not yet. The checks above are free: we call the tool without paying and read the payment request it sends back. The Verified badge needs paid calls whose answers match the promised output, and nobody can buy a badge.
Endpoint
GET https://agent-data-tools.revmesh2074.workers.dev/x402/receipt
| Category | Market data |
|---|---|
| Provider host | agent-data-tools.revmesh2074.workers.dev |
| Networks | eip155:137, eip155:42161, eip155:8453, solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp |
| Payment schemes | exact |
| Self-reported calls, 30 days | 1 from 1 payers (the provider's figure, not ours) |
Our checks, last 30 days
We never call tools that send, buy, move money or file anything, not even without paying.
Example input (from the provider)
{
"method": "GET",
"queryParams": {
"hash": "0x778c8c1b1fd1b320bf045eae0af7274e74a9e2e1f83c34ec96d9f825aea3b933"
},
"type": "http"
}
Promised output schema (from the provider)
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"properties": {
"input": {
"additionalProperties": false,
"properties": {
"method": {
"enum": [
"GET"
],
"type": "string"
},
"queryParams": {
"properties": {
"chain": {
"description": "Network: base (default), eth, arb, op or polygon",
"enum": [
"base",
"eth",
"arb",
"op",
"polygon"
],
"examples": [
"base"
],
"type": "string"
},
"hash": {
"description": "Transaction hash of the payment (0x, 64 hex characters)",
"examples": [
"0x778c8c1b1fd1b320bf045eae0af7274e74a9e2e1f83c34ec96d9f825aea3b933"
],
"pattern": "^0x[0-9a-fA-F]{64}$",
"type": "string"
},
"payTo": {
"description": "Optional: the payee, when the transaction holds several USDC transfers",
"examples": [
"0x6293ded2684F1A76E26bEcef87c137D691Fbf800"
],
"pattern": "^0x[0-9a-fA-F]{40}$",
"type": "string"
},
"resource": {
"description": "Optional: the URL or item the payment bought, written into the receipt",
"examples": [
"https://agent-data-tools.revmesh2074.workers.dev/news"
],
"type": "string"
}
},
"required": [
"hash"
],
"type": "object"
},
"type": {
"const": "http",
"type": "string"
}
},
"required": [
"type",
"method"
],
"type": "object"
},
"output": {
"properties": {
"example": {
"properties": {
"amount": {
"type": "string"
},
"amountAtomic": {
"type": "string"
},
"asset": {
"type": "string"
},
"assetAddress": {
"type": "string"
},
"block": {
"type": "number"
},
"canonical": {
"type": "string"
},
"chain": {
"type": "string"
},
"chainId": {
"type": "number"
},
"confirmations": {
"type": "number"
},
"explorerUrl": {
"type": "string"
},
"logIndex": {
"type": "number"
},
"method": {
"type": "string"
},
"note": {
"type": "string"
},
"paidAt": {
"type": "string"
},
"payee": {
"type": "string"
},
"payer": {
"type": "string"
},
"receiptId": {
"type": "string"
},
"resource": {},
"sha256": {
"type": "string"
},
"status": {
"type": "string"
},
"submittedBy": {
"type": "string"
},
"transactionHash": {
"type": "string"
}
},
"type": "object"
},
"type": {
"type": "string"
}
},
"required": [
"type"
],
"type": "object"
}
},
"required": [
"input"
],
"type": "object"
}