Join Nostr
2026-10-07 04:08:04 UTC

npub1qj…hgw5l on Nostr: Open-sourced the receipt parser we use to verify x402 payments (USDC on Base) without ...

Open-sourced the receipt parser we use to verify x402 payments (USDC on Base) without a facilitator — MIT, ~100 lines, 5 RPC fallbacks, zero deps:

https://seyitwb-svg.github.io/grand-line-fleet/x402_verifier.py

Lessons baked in:
• jitter each 402's amount + bind it to an order id, or public tx hashes get replayed across your endpoints
• claim the tx hash on a PK'd table BEFORE serving — check-then-insert races
• parse eth_getTransactionReceipt, not eth_getLogs — public RPCs rate-limit log queries on the USDC contract
• set a UA — bare Python-urllib gets 403'd under load

#x402 #usdc #base #agents