{"openapi":"3.1.0","info":{"title":"BenjiWorks — Base On-Chain Data","version":"1.3.0","description":"Four paid services in USDC on Base mainnet via x402: new Uniswap V2 pairs and V3 pools created on Base, large USDC transfers on Base, live token prices on Base, and token risk scores on Base. $0.05 per call each ($0.005 for token prices, $0.01 for risk checks). Reports what the chain and market show; promises no price, ranking, or safety."},"servers":[{"url":"https://benjiworks-base-pairs.vercel.app"}],"paths":{"/api/base-new-pairs":{"post":{"summary":"Base New-Pair Tracker","description":"Lists new Uniswap V2 pairs and V3 pools created on Base in the last N hours (1-24), newest first, up to 50. Price $0.05 in USDC on Base mainnet, paid via x402.","security":[],"x-payment-info":{"scheme":"exact","network":"eip155:8453","amount":"50000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xE4BC17f7F9537dd5933Bf33Ed52802D89130fE9c","price":"$0.05","description":"Base New-Pair Tracker — $0.05 per call, Base mainnet USDC","mimeType":"application/json"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"hours":{"type":"number","description":"Lookback window in hours, 1-24 (default 1)."},"limit":{"type":"number","description":"Max pairs to return, 1-50 (default 20)."}}},"example":{"hours":1,"limit":20}}}},"responses":{"200":{"description":"New-pair report.","content":{"application/json":{"schema":{"type":"object","properties":{"counts":{"type":"object"},"pairs":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Bad request (hours or limit out of range)."},"402":{"description":"Payment Required — $0.05 USDC on Base mainnet via x402.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/base-whale":{"post":{"summary":"Base Whale Watcher","description":"Lists large USDC transfers on Base in the last N hours (1-24), newest first, up to 50. Minimum transfer size in USD (default 10000, minimum 1000). Price $0.05 in USDC on Base mainnet, paid via x402.","security":[],"x-payment-info":{"scheme":"exact","network":"eip155:8453","amount":"50000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xE4BC17f7F9537dd5933Bf33Ed52802D89130fE9c","price":"$0.05","description":"Base Whale Watcher — $0.05 per call, Base mainnet USDC","mimeType":"application/json"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"hours":{"type":"number","description":"Lookback window in hours, 1-24 (default 1)."},"min_usd":{"type":"number","description":"Minimum transfer size in USD, 1000-10000000 (default 10000)."},"limit":{"type":"number","description":"Max transfers to return, 1-50 (default 20)."}}},"example":{"hours":1,"min_usd":10000,"limit":20}}}},"responses":{"200":{"description":"Whale-transfer report.","content":{"application/json":{"schema":{"type":"object","properties":{"counts":{"type":"object"},"transfers":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Bad request (hours, min_usd or limit out of range)."},"402":{"description":"Payment Required — $0.05 USDC on Base mainnet via x402.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/base-token-price":{"post":{"summary":"Base Token Price","description":"Live USD prices for Base tokens by contract address or well-known symbol (USDC, WETH, AERO, DEGEN, BRETT), with 24h change, up to 10 tokens per call. CoinGecko free API with an on-chain Uniswap V3 fallback. Price $0.005 in USDC on Base mainnet, paid via x402.","security":[],"x-payment-info":{"scheme":"exact","network":"eip155:8453","amount":"5000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xE4BC17f7F9537dd5933Bf33Ed52802D89130fE9c","price":"$0.005","description":"Base Token Price — $0.005 per call, Base mainnet USDC","mimeType":"application/json"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","description":"1-10 token contract addresses on Base, or well-known symbols: USDC, WETH, AERO, DEGEN, BRETT (default USDC + WETH)."}}},"example":{"tokens":["USDC","WETH"]}}}},"responses":{"200":{"description":"Token-price report.","content":{"application/json":{"schema":{"type":"object","properties":{"counts":{"type":"object"},"prices":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Bad request (tokens missing, empty, or over 10)."},"402":{"description":"Payment Required — $0.005 USDC on Base mainnet via x402.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/api/base-token-risk":{"post":{"summary":"Base Token Risk Check","description":"A 0-100 risk score for a Base token by contract address, with every penalty itemised: mint/pause authority, Uniswap liquidity, top-holder concentration, LP lock, transfer probe, and age. Price $0.01 in USDC on Base mainnet, paid via x402.","security":[],"x-payment-info":{"scheme":"exact","network":"eip155:8453","amount":"10000","asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","payTo":"0xE4BC17f7F9537dd5933Bf33Ed52802D89130fE9c","price":"$0.01","description":"Base Token Risk Check — $0.01 per call, Base mainnet USDC","mimeType":"application/json"},"requestBody":{"required":false,"content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"Token contract address on Base, or a well-known symbol: USDC, WETH, AERO, DEGEN, BRETT (default BRETT)."}}},"example":{"token":"BRETT"}}}},"responses":{"200":{"description":"Token-risk report.","content":{"application/json":{"schema":{"type":"object","properties":{"score":{"type":"number"},"verdict":{"type":"string"},"findings":{"type":"array","items":{"type":"object"}}}}}}},"400":{"description":"Bad request (token missing or not a contract address)."},"402":{"description":"Payment Required — $0.01 USDC on Base mainnet via x402.","content":{"application/json":{"schema":{"type":"object","properties":{"error":{"type":"string"}}}}}}}}},"/health":{"get":{"summary":"Health check","responses":{"200":{"description":"Service is up.","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"service":{"type":"string"},"version":{"type":"string"}}}}}}},"security":[]}}}}