How PolyPulse Works
1. Token Audit Pipeline
The browser submits chainId and a validated 0x contract address to GET /api/audit/:chainId/:address. PolyPulse queries GoPlus Security and DexScreener over fixed HTTPS allowlisted endpoints, applies deterministic Low / Caution / High verdict rules, and caches results for 45 seconds.
2. HTTP 402 (x402) USDC Audit Flow
Calling GET /api/x402/audit/:chainId/:address without an X-PAYMENT header returns HTTP 402 with Base USDC requirements ($0.01 USDC / 10,000 base units). Retrying with a verified Base transaction hash triggers multi-RPC receipt inspection, atomic single-use replay locking, and full audit delivery. Failed upstream scans (404/502/503) leave the hash unconsumed for retry.
3. Pro Checkout & EIP-191 Restoration
POST /api/payments/verify-tx validates $19 Monthly or $49 Annual USDC transfers on Base or Polygon and issues an HMAC-signed X-PRO-TOKEN. Cross-device Pro restoration uses a single-use, domain-bound EIP-191 personal_sign challenge.