Marketplace · API · x402
agent402.tools/api/onchain-sql
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.
| Endpoint | https://agent402.tools/api/onchain-sql |
| Trust | ✓ Verified callable · 100% uptime over 1 checks · ~308 ms |
| Pricing | Pay per call with x402, no account. Call it to get an exact quote before paying. |
| network | eip155:8453 |
| scheme | exact |
| pay to | 0xaBF4FAbd7c416fB67202E5f9002389Fc75e2a9D0 |
| method | POST |
| last updated | 2026-11-11T14:03:24.605Z |
Use it
Call it (an x402 client pays automatically)
curl -i https://agent402.tools/api/onchain-sql
# 402 reply -> sign PAYMENT-REQUIRED with an x402 client (e.g. @x402/fetch) -> retry with PAYMENT-SIGNATUREThis listing as JSON
curl https://aipaygen.com/v1/catalog/api/x402-52b297e66f127c22Search the whole marketplace from your agent (MCP)
{
"mcpServers": {
"aipaygen": {
"url": "https://aipaygen.com/mcp"
}
}
}