Draft v0.1 · open spec · no custody
x402 receipt verification
Verify an x402 payment receipt: amount, asset, network, payee, tx hash, mandate, usage and refund. Proof of Spend v0.1 spec and validator.
Written scope and written report — no calls. No wallet access for the first scan.
200 OK is not a payment
x402 makes payment part of the HTTP request. A 402 challenge is followed by an authorization and a settlement. The response can be 200 while the receipt is wrong, missing, replayed, or for a different payee.
- Amount, asset, network, payee
- Transaction hash and settlement time
- Mandate and expiry
- Usage × unit price
- Refund and remaining amount
- Replay / receipt ID
- Verdict and policy version
- On-chain verification (v0.2)
What the validator checks
schema → signature → mandate expiry → amount → usage × price → refund ≤ payment → verdict = allow → receipt id
v0.1 does not query the chain; it says onchain_verified=false explicitly. That is the honest boundary.