{"openapi":"3.1.0","info":{"title":"402arcade","version":"2.0.0","description":"Pay-per-call micro-APIs for AI agents. Every endpoint is x402-payable in USDC on Base — no API keys. Unpaid requests return HTTP 402 with machine-readable payment requirements and I/O schemas."},"servers":[{"url":"https://402arcade.dev"}],"paths":{"/base/balance":{"get":{"summary":"ETH or ERC20 balance for any wallet on Base","description":"ETH or ERC20 balance for any wallet on Base. Price: $0.003 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"address","in":"query","required":true,"description":"wallet address (0x…)","schema":{"type":"string"}},{"name":"token","in":"query","required":false,"description":"ERC20 contract; omit for native ETH","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/base/portfolio":{"get":{"summary":"Wallet snapshot: ETH + 10 major Base tokens in one call","description":"Wallet snapshot: ETH + 10 major Base tokens in one call. Price: $0.005 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"address","in":"query","required":true,"description":"wallet address (0x…)","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/base/resolve":{"get":{"summary":"Basename resolution, both directions","description":"Basename resolution, both directions. Price: $0.003 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"name","in":"query","required":false,"description":"name.base.eth to resolve","schema":{"type":"string"}},{"name":"address","in":"query","required":false,"description":"address for reverse lookup","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/base/nft":{"get":{"summary":"NFT metadata (ERC721/1155): collection, owner, traits, image","description":"NFT metadata (ERC721/1155): collection, owner, traits, image. Price: $0.005 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"contract","in":"query","required":true,"description":"NFT contract address","schema":{"type":"string"}},{"name":"tokenId","in":"query","required":true,"description":"token id (decimal)","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/base/tx":{"get":{"summary":"Transaction lookup with decoded ERC20 transfers","description":"Transaction lookup with decoded ERC20 transfers. Price: $0.003 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"hash","in":"query","required":true,"description":"transaction hash","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/base/quote":{"get":{"summary":"Best-execution DEX swap quote (Uniswap V3 + Aerodrome, multi-hop)","description":"Best-execution DEX swap quote (Uniswap V3 + Aerodrome, multi-hop). Price: $0.005 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"tokenIn","in":"query","required":true,"description":"token address or ETH/WETH","schema":{"type":"string"}},{"name":"tokenOut","in":"query","required":true,"description":"token address or ETH/WETH","schema":{"type":"string"}},{"name":"amount","in":"query","required":true,"description":"human-units amount of tokenIn","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/base/rugcheck":{"get":{"summary":"Token safety screening: ownership, dangerous functions, proxy, liquidity, honeypot heuristic","description":"Token safety screening: ownership, dangerous functions, proxy, liquidity, honeypot heuristic. Price: $0.02 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"token","in":"query","required":true,"description":"ERC20 contract address","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/base/identity":{"get":{"summary":"Identity graph: address ↔ basename ↔ ENS ↔ Farcaster","description":"Identity graph: address ↔ basename ↔ ENS ↔ Farcaster. Price: $0.008 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"q","in":"query","required":true,"description":"address | name.base.eth | name.eth | fid:N | farcaster username","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/web/markdown":{"get":{"summary":"Any public webpage → clean LLM-ready markdown","description":"Any public webpage → clean LLM-ready markdown. Price: $0.004 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"url","in":"query","required":true,"description":"public http(s) URL","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/web/screenshot":{"get":{"summary":"PNG screenshot rendered in headless Chromium","description":"PNG screenshot rendered in headless Chromium. Price: $0.015 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"url","in":"query","required":true,"description":"public http(s) URL","schema":{"type":"string"}},{"name":"width","in":"query","required":false,"description":"viewport width, max 1920","schema":{"type":"string"}},{"name":"fullPage","in":"query","required":false,"description":"true for full scroll height","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/web/pdf":{"get":{"summary":"Any public webpage → PDF","description":"Any public webpage → PDF. Price: $0.02 per call, paid in USDC on Base via x402 (HTTP 402 flow).","parameters":[{"name":"url","in":"query","required":true,"description":"public http(s) URL","schema":{"type":"string"}},{"name":"format","in":"query","required":false,"description":"A4 (default) or Letter","schema":{"type":"string"}},{"name":"landscape","in":"query","required":false,"description":"true for landscape","schema":{"type":"string"}}],"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}},"/batch":{"post":{"summary":"Up to 10 data queries in one paid call (bulk discount)","description":"Up to 10 data queries in one paid call (bulk discount). Price: $0.02 per call, paid in USDC on Base via x402 (HTTP 402 flow).","requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"calls":{"type":"array"}}}}}},"responses":{"200":{"description":"Paid response"},"402":{"description":"Payment required — see base64 JSON envelope in the `payment-required` response header (x402 v2)"}}}}}}