{"id":"agent402-tools-api-onchain-sql","name":"agent402.tools · /onchain-sql","endpoint":"https://agent402.tools/api/onchain-sql","description":"Run read-only SQL against indexed, DECODED blockchain data - base.events (decoded logs with parameters), base.transactions, base.blocks, base.decoded_user_operations, base.transaction_attributions (builder codes), plus solana.instructions (filter it by block_time). ClickHouse-dialect SELECTs, server-side grammar validation, up to 1,000 rows per call (a larger result is cut at 1,000 and says so). Ask Base anything - token flows, event analytics, gas studies - in one call, no indexer to run.","chain":"base","acceptedChains":["base","polygon","arbitrum","monad","avalanche","sei","optimism","other","solana","stellar"],"facilitator":"cdp","pricePerCallUsd":0.02,"calls30d":675,"callsPerDayApprox":22.5,"volume30dUsd":13.5,"volumePerDayApprox":0.45,"l30DaysPayers":5,"lastCalledMs":1793708496412,"sources":["CDP Bazaar"],"callsPerPayer":135,"qualityFlag":"monitor","health":null}