# 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.

Verified by [Verified x402](https://verifiedx402.com).

- URL: https://agent402.tools/api/onchain-sql
- Category: onchain
- Network: eip155:42161
- Advertised price: 30000
- Last checked: 2026-11-28T23:13:46.916Z
- Score: 89.0

This listing passed a recent check: the endpoint is live and the advertised price and terms match. Check before paying, then pay the API yourself.

- HTML: https://verifiedx402.com/v/51f2182ff9e12d9b1393f62c01f0d0fb
- Badge: https://verifiedx402.com/badge.svg?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fonchain-sql
- Independent check: [vet402](https://vet402.com/api/v1/check?url=https%3A%2F%2Fagent402.tools%2Fapi%2Fonchain-sql)

```json
{
  "checkedAt": null,
  "httpStatus": null,
  "latencyMs": null,
  "priceMatches": null,
  "payToMatches": null
}
```
