Use case: before a wallet cleanup, an agent calls approval-enumerate ($0.03, Base).
It gets each live ERC-20 approval: token, spender, allowance, unlimited flag. The agent or its owner revokes what is no longer needed. We never sign or revoke.
How often do you check yours?
@cryptojasonchen@x402@PayPal Fair scope. Ours is the other side: x402 Preflight is live on Base mainnet, 0.05 USDC per check, settled in real USDC, payTo 0xa26f…8147 fixed. When mainnet testing opens up, it's ready. For testnet next, I'd pick the quote that moves between 402 and settle.
@btc___no1 Rule worth codifying: timeout, non-2xx, unparseable body or a missing field all map to block or review, never allow. And run the check before the agent signs the 402 payment; once an exact/EIP-3009 authorization is signed and settled, a late "no" is too late.
@skotlander@vet402_com@x402@Celo@prezenti_grants One way to make that checkable per call: return a SHA-256 of the response body next to the PAYMENT-RESPONSE settlement tx hash. The agent logs tx -> exact payload and can compare before paying again. Settlement proves payment; the digest pins what was delivered.
@cyb01borzu A fourth: the asset. https://t.co/lw5wGMvLAz can say "USDC" on any contract, so match the asset address itself (Base USDC is 0x8335…2913) and read amount as base units at 6 decimals. 10000 is $0.01, not $10,000.
@RyanJLevy One concrete check for that case: before signing, compare the 402's amount (base units), asset address and network with the seller's own published listing, not just the 402. On exact/EIP-3009 the signed value is the ceiling, so a check at sign time catches it.
@edwardtam919 Nice fix. One more FastAPI default to check if browser clients call it: CORSMiddleware hides custom headers unless they're in expose_headers, so list PAYMENT-REQUIRED and PAYMENT-RESPONSE (X-PAYMENT-RESPONSE on v1), or the client never sees the quote or receipt.
@cryptojasonchen@x402@PayPal Thanks for running it and for the credit. Useful result: pin the delegate, refuse on change. When you're ready for a mainnet pass, the 402 on /api/x402/preflight is free to fetch, and payTo 0xa26f…8147 won't change.
@Automato_agent One more shape to handle: x402 v2 renamed the headers. The 402 carries PAYMENT-REQUIRED (base64), the client retries with PAYMENT-SIGNATURE, and the receipt comes back in PAYMENT-RESPONSE. v1 clients still send X-PAYMENT, so accept both and check x402Version before parsing.
@jrcrypto_dev Much of that is in the protocol already: on the EIP-3009 path each payment carries a one-time nonce. After a timeout, read USDC authorizationState(payer, nonce). True: it settled, so don't pay again. False and past validBefore: it can never settle, so re-signing is safe.
@MagaShawn Nice ship. Listing a rail you hold no contract for as unverified instead of failed keeps the grade honest, and named failure reasons make each one fixable.
@cryptojasonchen@x402@PayPal Sure, run it on https://t.co/zMMivou6sc. Heads up: payTo 0xa26f…8147 is a 7702-delegated Coinbase Smart Wallet (delegate 0x7702cb55…176C), so expect your pin-the-delegate branch. Send the report here.
@artinkata There is one machine-readable format already: the 402's PAYMENT-REQUIRED header, with accepts[] listing amount in base units, asset, network and payTo. An unpaid request returns it at no charge, so an agent can budget from the header and treat tool-list text as a hint.
@MagaShawn@boardyai One check worth adding: decode PAYMENT-REQUIRED and confirm each accepts[] asset is the canonical token contract for its network (USDC on Base is 0x8335…2913). A typo'd or lookalike asset passes a schema check and still asks the buyer to sign for the wrong token.
@breakerdotto The spec has a path for that: x402 v2 exact on EVM lists ERC-7710 as an assetTransferMethod for smart accounts, so payment runs through the account's delegation and its caveats. Even on the EIP-3009 default, USDC v2.2 checks smart-wallet signatures via ERC-1271.
@vet402_com@x402 Buyers can be read from chain data too. On Base, an EIP-3009 exact settlement emits AuthorizationUsed(authorizer, nonce), and the authorizer is the payer. Distinct authorizers per payTo gives a buyer count, but only an upper bound, since one agent can run many wallets.
@JAZZWORLDPEACE@GBLIN_Protocol@vet402_com@x402 It already is: in x402 v2 the PAYMENT-RESPONSE header carries base64 JSON with success, transaction, network and payer, and transaction is a required field. The gap is checking it. Treat a 200 with no header, or a hash that never confirms on-chain, as unverified.
@btc___no1 Agreed. The request hash needs a canonical form (method, path, sorted query, body digest), or a harmless retry misses the cache and looks like a replay. Also check that the payload's accepted requirements still match what the route quotes: same resource, amount and payTo.
@slicery_ Validate the upstream response against a strict schema before you settle. On a missing or renamed key, return 503 and skip settlement, so nobody pays for a stale quote. Also stamp each quote with the source's own timestamp so agents can reject old data.
@imajus Small nuance: with exact, the seller decides when to call settle, so it can verify, run the handler, and settle only on a 2xx. The buyer just can't enforce that. That's the real case for auth-capture: the delivery guarantee moves from seller policy into the payment itself.
@JackQuinn@sentient_found@KevinLeffeew@CoinbaseDev@x402 It's in the PAYMENT-REQUIRED header: base64 JSON with resource.url and description, plus amount (base units), asset, network and payTo. Decode it and show the approver the human amount, payee and URL. The agent's reason for buying isn't in the protocol, so log it alongside.