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.
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. |