# PreFlight402 — Agentic Pre-Trade & x402 Audit API Base URL: https://x402-preflight-api.shellshelltorres.workers.dev Network: eip155:8453 (USDC) PayTo: 0x1aF95E56627F67E8AeD0eDa2a593d2d503833809 Facilitator: https://facilitator.payai.network OpenAPI: https://x402-preflight-api.shellshelltorres.workers.dev/openapi.json Discovery: https://x402-preflight-api.shellshelltorres.workers.dev/.well-known/x402.json MCP Endpoint (Streamable HTTP): https://x402-preflight-api.shellshelltorres.workers.dev/mcp MCP Server Card: https://x402-preflight-api.shellshelltorres.workers.dev/.well-known/mcp/server-card.json A2A Agent Card: https://x402-preflight-api.shellshelltorres.workers.dev/.well-known/agent-card.json ## Paid Endpoints (x402 HTTP 402 Micropayments) - GET /v1/token-safety ($0.015 USDC): Aggregates GoPlus token_security, Honeypot.is v2 simulation, DexScreener liquidity, and live EVM RPC bytecode/proxy checks into a normalized 0-100 risk score and SAFE/CAUTION/DANGER verdict. | Free sample: https://x402-preflight-api.shellshelltorres.workers.dev/v1/sample/token-safety - GET /v1/dex-spread ($0.010 USDC): Compares live DEX liquidity pools from DexScreener against DefiLlama oracle price to compute best buy/sell pools, gross spread %, bottleneck liquidity, and actionability. | Free sample: https://x402-preflight-api.shellshelltorres.workers.dev/v1/sample/dex-spread - GET /v1/wallet-profile ($0.010 USDC): Checks GoPlus address_security sanctions/phishing/exploit labels alongside live EVM RPC bytecode, nonce, and native balance for safe agent counterparty screening. | Free sample: https://x402-preflight-api.shellshelltorres.workers.dev/v1/sample/wallet-profile - GET /v1/x402-audit ($0.005 USDC): SSRF-hardened probe verifying an external HTTPS endpoint returns a valid HTTP 402 x402 challenge, non-zero payTo address, network ID, /.well-known/x402.json manifest, and latency. | Free sample: https://x402-preflight-api.shellshelltorres.workers.dev/v1/sample/x402-audit - GET /v1/trade-preflight ($0.025 USDC): Single-call execution gate combining token safety, honeypot simulation, constant-product price impact, gas USD cost, oracle deviation, and GO/CAUTION/BLOCK verdict. | Free sample: https://x402-preflight-api.shellshelltorres.workers.dev/v1/sample/trade-preflight - GET /v1/token-batch ($0.025 USDC): Screens 2 to 5 EVM tokens in parallel using GoPlus, DexScreener batch pools, and DefiLlama pricing, returning safety verdicts and liquidity ranked by risk. | Free sample: https://x402-preflight-api.shellshelltorres.workers.dev/v1/sample/token-batch - GET /v1/gas-oracle ($0.005 USDC): Fetches live RPC gas prices across Base, Ethereum, Arbitrum, Polygon, BSC, and Optimism with USD fee estimates for transfers, DEX swaps, and arbitrage. | Free sample: https://x402-preflight-api.shellshelltorres.workers.dev/v1/sample/gas-oracle ## Quickstart for Autonomous Agents (@x402/fetch) ```ts import { wrapFetchWithPayment } from '@x402/fetch'; const res = await fetchWithPay('https://x402-preflight-api.shellshelltorres.workers.dev/v1/token-safety?chain=base&address=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913'); const report = await res.json(); ``` ## Inspect HTTP 402 Challenge via curl curl -i "https://x402-preflight-api.shellshelltorres.workers.dev/v1/token-safety?chain=base&address=0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"