{"openapi":"3.1.0","info":{"title":"Base Capital","version":"1.0.0","description":"x402 onchain risk-intelligence API for AI trading agents on Base.","x-guidance":"Token risk intelligence for AI trading agents on Base. Call GET /v1/risk/{token} with an ERC-20 contract address for a 0-100 safety score plus honeypot/rug/ownership/liquidity flags (GoPlus-backed); every verdict is staked onchain. Call GET /v1/signal/trending for risk-ranked trending tokens. Call POST /v1/risk/batch to score up to 10 tokens in one call. Both cost 0.010000 USDC per call via x402 on eip155:8453. Free preview at GET /v1/preview/{token}."},"servers":[{"url":"https://base-capital.vercel.app"}],"paths":{"/v1/risk/{token}":{"get":{"operationId":"riskCheck","summary":"Risk check - token safety score for a Base ERC-20","tags":["Risk"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"token","in":"path","required":true,"description":"ERC-20 token contract address on Base (0x-prefixed, 42 chars).","schema":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}],"responses":{"200":{"description":"Risk assessment for the token","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"score":{"type":"number"},"rating":{"type":"string"},"flags":{"type":"array","items":{"type":"string"}}},"required":["token","score"]}}}},"402":{"description":"Payment Required"}}}},"/v1/risk/batch":{"post":{"operationId":"riskBatch","summary":"Batch risk check - score up to 10 Base tokens in one call","tags":["Risk"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","minItems":1,"maxItems":10,"items":{"type":"string","pattern":"^0x[a-fA-F0-9]{40}$"}}},"required":["tokens"]}}}},"responses":{"200":{"description":"Array of per-token risk assessments; failed tokens include an error field","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"},"results":{"type":"array","items":{"type":"object"}}},"required":["results"]}}}},"402":{"description":"Payment Required"}}}},"/v1/signal/trending":{"get":{"operationId":"trendingSignal","summary":"Trending signal - risk-ranked trending tokens","tags":["Signal"],"x-payment-info":{"price":{"mode":"fixed","currency":"USD","amount":"0.010000"},"protocols":[{"x402":{}}]},"parameters":[{"name":"limit","in":"query","required":false,"description":"Max number of tokens to return (default 10).","schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Risk-ranked list of trending tokens","content":{"application/json":{"schema":{"type":"object","properties":{"tokens":{"type":"array","items":{"type":"object"}}},"required":["tokens"]}}}},"402":{"description":"Payment Required"}}}}}}