Skip to content

query-onchain-data

Query onchain data on Base using the CDP SQL API via x402. Use when you or your user want to view onchain information about decoded blocks, transactions, and

— (0 ratings) 2.1K downloads coinbase
$ npx skills add https://github.com/coinbase/agentic-wallet-skills --skill query-onchain-data

Skills can run code on your computer. Review the source before installing. This listing is community-made and isn't affiliated with Anthropic.

About this skill

Query Onchain Data on Base

Use the CDP SQL API to query onchain data (events, transactions, blocks, transfers) on Base. Queries are executed via x402 and are charged per query.

Confirm wallet is initialized and authed

npx awal@2.10.0 status

If the wallet is not authenticated, refer to the authenticate-wallet skill.

Executing a Query

npx awal@2.10.0 x402 pay https://x402.cdp.coinbase.com/platform/v2/data/query/run -X POST -d '{"sql": "<YOUR_QUERY>"}' --json

IMPORTANT: Always single-quote the -d JSON string to prevent bash variable expansion.


Installs: 2.1K | GitHub stars: 129 | First seen: Feb 12, 2026

Related skills

New

DevOps & cloud

azure-storage

Unified access to Azure blob storage, file shares, queues, tables, and data lake services.

New • 780.2K
New

Databases

azure-resource-lookup

Fast discovery and inventory of Azure resources across subscriptions using Resource Graph queries.

New • 779.5K
New

DevOps & cloud

azure-resource-visualizer

Transform Azure resource groups into detailed architecture diagrams showing resource relationships and configurations.

New • 779.4K