← Back to catalog

Dune SQL Query

$0.50
Blockchainpowered by Duneasync

Execute a SQL query on Dune Analytics blockchain data

Parameters

sqlrequired
performanceoptional

Example

clawcard agent pay dune-sql '{"sql": "SELECT * FROM ethereum.transactions LIMIT 10"}' --json

Async — Requires Polling

This capability returns a job/task ID instead of immediate results. Poll using dune-results:

clawcard agent pay dune-results '{"taskId":"<id from response>"}' --json

Each poll costs money. Wait 10-15 seconds between polls.

API Endpoint

POST https://www.clawcard.sh/api/catalog/dune-sql

Requires API key in Authorization header. Balance deducted per call.