termix-official/cryptoclaw/dune
Claude Code and agent skill by termix-official/cryptoclaw
- community
Checking that the SKILL.md file is still in the repository.
Execute and query Dune Analytics dashboards for on-chain data and custom SQL analytics.
Install
npx vskill@latest install termix-official/cryptoclaw/duneSKILL.md
Dune Analytics API
Execute SQL queries on blockchain data, fetch dashboard results, and access curated datasets via the Dune API.
Base URL
Requires API key: set DUNE_API_KEY. Free tier available at https://dune.com/settings/api
Pass via header: X-Dune-API-Key: {key}
Core Workflow
1. Execute a Query
Body (optional filters):
Returns execution_id for polling.
2. Check Execution Status
States: QUERY_STATE_PENDING, QUERY_STATE_EXECUTING, QUERY_STATE_COMPLETED, QUERY_STATE_FAILED
Poll every 2-3 seconds until completed.
3. Get Results
Returns rows as JSON with column metadata. Use ?limit=100&offset=0 for pagination.
Shortcut: Get Latest Results
Returns cached results from the last execution without re-running. Fast and free of execution credits.
Useful Public Query IDs
| Query ID | Description | |
|---|---|---|
3237721 | Top DEX traders by volume (7d) | |
3105506 | Whale token transfers (24h) | |
2030664 | Stablecoin flows by chain | |
1847958 | NFT marketplace volume comparison | |
3532352 | Bridge volume across chains | |
2474310 | Gas spent by protocol (Ethereum) |
Note: Public query IDs may change or become unavailable. Verify before relying on them.
Writing Custom Queries
Create a Query
Body:
Key Tables
| Table | Chain | Description | |
|---|---|---|---|
ethereum.transactions | ETH | All transactions | |
bnb.transactions | BSC | BSC transactions | |
polygon.transactions | Polygon | Polygon transactions | |
arbitrum.transactions | Arbitrum | Arbitrum transactions | |
erc20_ethereum.evt_Transfer | ETH | ERC-20 transfer events | |
erc20_bnb.evt_Transfer | BSC | BEP-20 transfer events | |
dex.trades | Multi | Aggregated DEX trades | |
nft.trades | Multi | Aggregated NFT trades | |
prices.usd | Multi | Token prices (hourly) | |
tokens.erc20 | Multi | Token metadata |
DuneSQL Syntax Notes
- DuneSQL is based on Trino (Presto fork)
- Use double quotes for column names with special chars:
"from","to" - Byte arrays (addresses):
0xprefix works, useLOWER()for case-insensitive matching - Timestamps:
block_timeis TIMESTAMP type, useNOW() - INTERVAL '7' DAYfor ranges - Aggregations: standard SQL —
SUM(),COUNT(),AVG(),GROUP BY - Use
LIMITalways — avoid unbounded queries
Example Custom Queries
Wallet transaction count (last 30 days):
Top tokens by transfer volume (24h):
API Limits (Free Tier)
- 10 query executions per day (re-execute)
- 250 datapoints per result
- Cached results (
/query/{id}/results) do not count against execution limits - Prefer cached results when freshness is not critical
Usage Notes
- Prefer cached results (
GET /query/{id}/results) over re-executing queries to conserve credits - For wallet-specific analysis, pass the address as a
query_parameterrather than hardcoding - Always use
LIMITin custom SQL to avoid timeouts and large payloads - Combine with
debankfor real-time portfolio data anddefillamafor protocol-level TVL - When building custom queries, test with small limits first
- Present results in tables or summaries — raw Dune output can be verbose
Example Interactions
User: "Show top DEX traders this week" → Fetch cached results from query 3237721, present top 10 by volume
User: "How many transactions has my wallet done?" → Execute custom query with wallet_address parameter, report count and total value
User: "What are the biggest token transfers today?" → Fetch cached whale transfer query, present top movers
User: "Write a query to find all USDT transfers over $100k on BSC" → Create custom SQL on erc20_bnb.evt_Transfer, filter by USDT address and amount threshold
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/dune/SKILL.md
Popularity
- Repository stars
- 286
- Repository forks
- 9
- Repository npm downloads, 7 days
- 178
- 7-day trend score
- 43
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 17 Mar 2026, 7 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/termix-official/cryptoclaw/dune)