Description
query-onchain-data is an agent skill from Coinbase that queries decoded onchain data on Base, including events, transactions and blocks, through the CDP SQL API. Each query is paid with an x402 micropayment, and the skill says each query costs $0.10 in USDC. Queries run against indexed tables in CoinbaseQL, a SQL dialect that the skill describes as based on ClickHouse. The result is direct SQL access to decoded Base chain data, without running your own indexer or relying on block explorer APIs that rate-limit or offer less query flexibility. Typical uses include looking up recent USDC transfers for a wallet address on Base, checking transaction history and gas usage for a contract you deployed, counting the event types a contract emitted in the last hour, pulling block-level stats such as transaction count and gas used over time, and tracking Transfer and Approval events across known Base contracts. The skill is listed on officialskills.sh under data and is labeled as a community skill. Install it with npx skills add https://github.com/coinbase/skills --skill query-onchain-data, or paste the GitHub link into your coding assistant and ask it to install the skill.…
Highlights
- Decoded Base events, transactions and blocks
- SQL access through the CDP SQL API
- Pay per query with x402 micropayments
- Query examples for transfers, gas and contract events
Ratings & Reviews
No ratings yet
Be the first to rate coinbase/query-onchain-data.
People also visit

bankless/onchain-mcp
Interact with smart contracts and query transaction and token information
coinbase/query-onchain-data FAQ
What data can I query?
Decoded onchain data on Base, including events, transactions and blocks, through the CDP SQL API.
What does a query cost?
The skill says each query costs $0.10 in USDC, paid through x402 micropayments.
What SQL dialect is used?
CoinbaseQL, which the skill describes as a ClickHouse-based SQL dialect.
How do I install it?
Run npx skills add https://github.com/coinbase/agentic-wallet-skills --skill query-onchain-data, or paste the GitHub link into your coding assistant and ask it to install the skill.
What are the best coinbase/query-onchain-data alternatives?
Popular alternatives to coinbase/query-onchain-data include query-onchain-data, bankless/onchain-mcp and edge. See all coinbase/query-onchain-data alternatives











