{"openapi":"3.1.0","info":{"title":"PolyPulse API","version":"1.0.0","description":"PolyPulse Blockchain Intelligence, EVM Token Security Scanner, Live DEX Pairs, and HTTP 402 (x402) USDC Audit Infrastructure."},"servers":[{"url":"https://polypulse.ai.studio"}],"paths":{"/api/audit/{chainId}/{address}":{"get":{"summary":"Run a free EVM token security audit","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string","enum":["1","8453","56","42161","137"]}},{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}],"responses":{"200":{"description":"Structured TokenAuditResult JSON report"},"400":{"description":"Invalid chainId or EVM contract address"},"404":{"description":"Contract not indexed on requested network"}}}},"/api/x402/audit/{chainId}/{address}":{"get":{"summary":"Pay-per-call x402 token audit ($0.01 USDC on Base)","parameters":[{"name":"chainId","in":"path","required":true,"schema":{"type":"string","enum":["1","8453","56","42161","137"]}},{"name":"address","in":"path","required":true,"schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}},{"name":"X-PAYMENT","in":"header","required":false,"description":"Base (8453) USDC transfer transaction hash >= 10000 units ($0.01 USDC)","schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{64}$"}}],"responses":{"200":{"description":"Verified payment receipt and TokenAuditResult JSON"},"402":{"description":"x402 Payment Required challenge payload"},"409":{"description":"Transaction hash already redeemed"},"503":{"description":"Base RPC temporarily unavailable; txHash not consumed"}}}},"/api/audit/batch":{"post":{"summary":"Pro-gated parallel batch token audit (up to 10 contracts)","parameters":[{"name":"X-PRO-TOKEN","in":"header","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Batch audit results array"},"401":{"description":"Missing or invalid Pro session token"},"403":{"description":"Expired or inactive Pro entitlement"}}}},"/api/pairs":{"get":{"summary":"Live EVM DEX spot token pairs with liquidity and 24h metrics","responses":{"200":{"description":"Array of LiveTokenPair records"}}}},"/api/treasury/config":{"get":{"summary":"Server-locked treasury address and USDC pricing schedule","responses":{"200":{"description":"Locked treasury address and pricing"}}}},"/api/health/rpc":{"get":{"summary":"Live Base (8453) and Polygon (137) RPC pool health probe","responses":{"200":{"description":"All payment RPC networks healthy"},"503":{"description":"One or more RPC pools degraded"}}}},"/.well-known/x402":{"get":{"summary":"Machine-readable x402 service discovery manifest","responses":{"200":{"description":"x402 discovery JSON"}}}}}}