Verify an x402 settlement on-chain
x402.verify-receiptDecodes an x402 PAYMENT-RESPONSE receipt and checks Base / Base Sepolia: settlement_confirmed is true only if the tx succeeded and its logs contain a USDC Transfer to the expected payTo (pay_to, else this server's) for the expected amount (amount, else this server's price) from the stated payer. RPC unavailable, unknown network or a receipt without a tx fails (not charged). Price: $0.02 USDC per call on Base mainnet ($0.002 on Base Sepolia), paid with x402 or 6 credits with a spend key; failed calls are not charged. The result carries a signed attestation (naxytra-attestation/1, in result._meta["naxytra.com/attestation"]) of what was observed on-chain — verified true or false — that you can hand to a third party; keys at /.well-known/delivery-receipt-keys. Anchoring: each attestation carries a chronology-protocol binding tag inside its signed bytes, and naxytra submits its digest (only the digest) to the next anchoring epoch. Once that epoch is published, anyone can check, with no account and no trust in naxytra, that the attestation existed no later than the public Bitcoin blocks holding its OpenTimestamps proofs: the bundle verifies offline, and the Bitcoin step needs only a public block explorer or your own node. Epochs run about monthly; there is no anchoring SLA. No extra charge. Status: GET https://api.naxytra.com/v1/anchoring/<attestation_id>.
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": {
"receipt": "<receipt>"
},
"name": "x402.verify-receipt"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| payer | No | Expected payer (default: the receipt's payer). | |
| amount | No | Expected amount in USDC base units (default: this server's price when pay_to is this server). | |
| pay_to | No | Expected merchant address (default: this server's payTo). | |
| confirm | No | false = decode only, no on-chain check (default true). | |
| receipt | Yes | Base64 PAYMENT-RESPONSE value, settlement JSON text, or the object. |