Command Palette

Search for a command to run...

Назад к скиллам
скилл № 67712

dune

Dune CLI for querying blockchain and on-chain data via DuneSQL, searching decoded contract tables, managing saved queries, visualizations, dashboards…

БесплатноБез исполняемых скриптов
duneanalyticsот duneanalytics★ 57 звёзд на GitHub

Установить dune в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Prerequisites

Assume the Dune CLI is already installed and authenticated. Do not run upfront install or auth checks. Just execute the requested dune command directly.

If a dune command fails, inspect the error to determine the cause and follow the recovery steps in install-and-recovery.md:

  • "command not found" → CLI not installed. See CLI Not Found Recovery.
  • 401 / "unauthorized" / "missing API key" → Auth failure. See Authentication Failure Recovery.
  • Unknown subcommand or flag / unexpected output → Possible version mismatch. See Version Compatibility. This skill is written for CLI v0.1.24: if a command listed below is unknown, ask the user to update (brew upgrade dune-cli, or rerun the install script).
  • Credit, rate-limit, or billing error → Show the error and the links the CLI prints after it. Do not retry until the user changes their plan or the credits renew.

Dune CLI

A command-line interface for Dune -- the leading blockchain data platform. Use it to write and execute DuneSQL queries against on-chain data, discover datasets, chart results, build dashboards, organize content in folders, schedule queries and alerts, materialize results into tables, submit contracts for decoding, see and cancel the team's runs, search documentation, and monitor credit usage.

Commands run as the API key's owner (a user or a team) and use its credits. New queries and dashboards are public unless created with --private or the team makes them private by default.

Authentication

All commands except docs search require authentication via a Dune API key. The key is resolved in this priority order:

# 1. Flag (highest priority -- overrides everything)
dune query run 12345 --api-key <key>

# 2. Environment variable
export DUNE_API_KEY=<key>
dune query run 12345

# 3. Saved config file (lowest priority)
dune auth --api-key <key>        # saves to ~/.config/dune/config.yaml
dune query run 12345              # uses saved key

To save your key interactively (prompted from stdin):

dune auth

Config file location: ~/.config/dune/config.yaml

Global Flags

Flag Description
--api-key <KEY> Dune API key (overrides DUNE_API_KEY env var and saved config)

Output Format (per-command flag)

Most commands support -o, --output <FORMAT> with values text (default, human-readable tables) or json (machine-readable).

Always use -o json on every command that supports it. JSON output contains more detail than text (full API response objects vs. summarized tables) and is unambiguous to parse. The text format is for human terminal use and drops fields.

DuneSQL

Dune uses DuneSQL, a Trino-based SQL dialect, as its query engine. Key points:

  • All SQL passed to --sql flags or saved queries must be valid DuneSQL
  • DuneSQL supports standard SQL with extensions for blockchain data types (addresses, hashes, etc.)
  • See dunesql-cheatsheet.md for common types, functions, patterns, and pitfalls
  • Use dune docs search --query "DuneSQL functions" to look up syntax and functions
  • Reference docs: Writing Efficient Queries, Functions and Operators

Key Concepts

Performance Tiers

Available tiers: small, medium, large. Do not pass --performance by default — omit it and the API auto-selects. Only provide it when:

  • The user explicitly requests a tier
  • The query is clearly complex (heavy joins, large aggregations)
  • A previous run returned a timeout or resource-limit error

Schedules, alerts, and materialized views need a tier (schedule set and query alert require --performance). If Dune rejects a tier ("Unsupported performance" or "not available with your subscription"), the account's plan does not include it: tell the user and offer the next tier up instead of retrying.

Execution States

After submitting a query, the execution progresses through these states:

State Meaning Action
QUERY_STATE_PENDING Queued for execution Wait
QUERY_STATE_EXECUTING Currently running Wait
QUERY_STATE_COMPLETED Results available Fetch results
QUERY_STATE_FAILED Execution failed Check error message; fix SQL and retry
QUERY_STATE_CANCELLED Cancelled by user or system Re-execute if needed

Dataset Categories

Category Description
canonical Core blockchain data (blocks, transactions, traces, logs)
decoded ABI-decoded contract data (events and function calls)
spell
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

  1. 01Bash(dune:*)
  2. 02Bash(curl:*)
  3. 03Read

Вложенные файлы

  • references/contract-decoding.md
  • references/dashboard-management.md
  • references/dataset-discovery.md
  • references/docs-and-usage.md
  • references/dunesql-cheatsheet.md
  • references/folders.md
  • references/install-and-recovery.md
  • references/materialized-views.md
  • references/query-execution.md
  • references/query-management.md
  • references/schedules-and-alerts.md
  • references/visualization-management.md

FAQ

Что делает скилл dune?

Dune CLI for querying blockchain and on-chain data via DuneSQL, searching decoded contract tables, managing saved queries, visualizations, dashboards, folders, schedules, query alerts, materialized views, contract decoding submissions, and the team's running queries, and monitoring credit usage on Dune. Use when user asks about blockchain data, on-chain analytics, token transfers, DEX trades, smart contract events, wallet balances, Ethereum/EVM chain queries, DuneSQL, visualizations, charts, dashboards, scheduling or alerting on a query, materialized views, decoding a contract, or what queries are running, or says "query Dune", "search Dune datasets", "run a Dune query", "create a dashboard", "manage dashboard", "alert me", or "cancel my query".

Как установить скилл dune?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл dune запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить dune с