My x402 endpoint took zero external payments for two weeks. The bug was a six-character string in the 402 response: I asked buyers to sign EIP-712 authorizations against the domain name USDC, but the Base USDC contract's real EIP-712 domain name is USD Coin. Every signature a standard client produced was rejected on-chain - silently, with no error on my side. Same story for USDT on Ethereum: the domain name is Tether USD, not USDT.
[The three layers the bug hid in (dynamic origin, edge worker, well-known manifest), why every one of my checks passed anyway, and the three real settlements with an outside client that proved the fix - paid section]
Comments