{"uid":"cap_yBiIG4JDT3i6_lFLQq3bZ","slug":"lion-adaptive-query-keyless-on-chain-data-rpc-for-agents-9f067d46","name":"LION Adaptive Query - Keyless On-Chain Data & RPC for Agents","description":"Keyless off-chain and on-chain data for AI agents. No API key, no signup - payment is the only gate. Pay-per-call in USDC on Base via x402.","url":"https://lion-x402.lionmaster-operations.workers.dev/api/x402/adaptive-query","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET"],"type":"string"},"queryParams":{"type":"object","properties":{"q":{"type":"string"},"mode":{"type":"string","description":"auto|rpc|domain|social"},"domain":{"type":"string"},"method":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"rows":[{"symbol":"WETH","volume_h24":500000,"liquidity_usd":1000000,"token_address":"0x4200000000000000000000000000000000000006","activity_score":0.82}],"as_of":"2026-06-01T00:00:00.000Z","source":"base_dex","network":"eip155:8453","asset_id":"LION_ADAPTIVE_QUERY_001","row_count":1,"confidence":0.9,"query_echo":{"sort":"activity","limit":20,"source":"base_dex"},"data_age_seconds":0}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_87YoyLCm5gDdG8I24W5k6","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Executes adaptive queries against Base DEX data and on-chain RPC methods (eth_call, eth_getBalance, eth_getLogs, etc.) with no API key — pay-per-call in USDC via x402.","exampleAgentPrompt":"Using LION, run an adaptive query on Base DEX to get the top 20 tokens sorted by activity — I want their symbols, 24h volume, liquidity in USD, and activity score, no API key needed, just pay per call in USDC.","exampleUseCases":[{"title":"Check ETH balance on Base","prompt":"Use LION to look up the current ETH balance for this wallet address on Base — no API key, just pay per call in USDC and give me the balance in wei and ETH."},{"title":"Fetch top liquidity tokens on Base DEX","prompt":"Using LION, pull the top 10 tokens on Base DEX sorted by liquidity in USD — I need their symbols, liquidity amounts, and 24h volume, paid per call with no signup required."},{"title":"Query contract logs on Base blockchain","prompt":"Use LION to run an eth_getLogs call on Base for this smart contract address over the last 500 blocks — I want all matching events returned as JSON, paying per call in USDC via x402."}],"resultDescription":"Returns a JSON object with rows of token or on-chain data including symbol, 24h volume, liquidity USD, token address, and activity score; plus metadata like as_of timestamp, source, network (eip155:8453), row count, confidence score, data age in seconds, and a query echo confirming sort/limit/source parameters.","failureModes":["Payment not received or insufficient USDC — returns HTTP 402 with payment requirements","Invalid JSON-RPC method (write methods or unsupported calls) — returns error indicating read-only methods only","Malformed params array — JSON-RPC error response","Batch size exceeds 10 — request rejected","Network or worker timeout — upstream RPC or data source unavailable"],"whenToPreferThis":"Choose this endpoint when you need keyless, signup-free access to Base on-chain data or DEX analytics, and you are willing to pay per call in USDC via x402. Ideal for AI agents that cannot manage API key secrets but can execute micropayments. Use when you need live DEX token activity/liquidity data or raw EVM RPC calls on Base without provisioning credentials.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:33:39.694Z","isFirstParty":false}