Loading...
Loading...
Compare original and translation side by side
dunedunedunedunedocs searchundefineddocs searchundefined
To save your key interactively (prompted from stdin):
```bash
dune auth~/.config/dune/config.yaml
若要交互式保存密钥(从标准输入获取):
```bash
dune auth~/.config/dune/config.yaml| Flag | Description |
|---|---|
| Dune API key (overrides |
| 参数 | 描述 |
|---|---|
| Dune API密钥(覆盖 |
-o, --output <FORMAT>textjsonAlways useon every command that supports it. JSON output contains more detail than-o json(full API response objects vs. summarized tables) and is unambiguous to parse. Thetextformat is for human terminal use and drops fields.text
-o, --output <FORMAT>textjson请始终在支持该参数的命令中使用。JSON输出包含比-o json格式更多的细节(完整的API响应对象 vs 汇总表格),且解析时无歧义。text格式仅适用于人类在终端中使用,会丢弃部分字段。text
--sqldune docs search --query "DuneSQL functions"| Tier | Flag Value | Description |
|---|---|---|
| Medium | | Standard compute resources. Suitable for most queries. |
| Large | | Higher compute resources. Use for complex queries, large joins, or heavy aggregations. Costs more credits. |
| 层级 | 参数值 | 描述 |
|---|---|---|
| 中等 | | 标准计算资源,适用于大多数查询。 |
| 大型 | | 更高配置的计算资源,适用于复杂查询、大型关联或重度聚合操作,消耗更多积分。 |
| State | Meaning | Action |
|---|---|---|
| Queued for execution | Wait |
| Currently running | Wait |
| Results available | Fetch results |
| Execution failed | Check error message; fix SQL and retry |
| Cancelled by user or system | Re-execute if needed |
| 状态 | 含义 | 操作 |
|---|---|---|
| 等待执行队列 | 等待 |
| 正在执行 | 等待 |
| 结果已生成 | 获取结果 |
| 执行失败 | 检查错误信息;修正SQL后重试 |
| 被用户或系统取消 | 如有需要重新执行 |
| Category | Description |
|---|---|
| Core blockchain data (blocks, transactions, traces, logs) |
| ABI-decoded contract data (events and function calls) |
| Dune Spellbook transformations (curated, higher-level tables like |
| Community-contributed datasets |
| 分类 | 描述 |
|---|---|
| 核心区块链数据(区块、交易、追踪记录、日志) |
| 经ABI解码的合约数据(事件与函数调用) |
| Dune Spellbook转换后的数据集(经过整理的高阶表格,如 |
| 社区贡献的数据集 |
| Type | Description |
|---|---|
| Core Dune-maintained tables |
| Contract ABI-decoded tables |
| Spellbook transformation tables |
| User-uploaded CSV/data tables |
| Materialized transformation tables |
| Virtual transformation views |
| 类型 | 描述 |
|---|---|
| Dune官方维护的核心表格 |
| 合约ABI解码后的表格 |
| Spellbook转换后的表格 |
| 用户上传的CSV/数据表格 |
| 物化转换表格 |
| 虚拟转换视图 |
--param key=valuetextnumberdatetimeenumdune query run 12345 --param wallet=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --param days=30 -o json--param key=valuetextnumberdatetimeenumdune query run 12345 --param wallet=0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045 --param days=30 -o json| Command | Description | Auth |
|---|---|---|
| Save API key to config file | No |
| Create a new saved query | Yes |
| Fetch a saved query's SQL and metadata | Yes |
| Update an existing query | Yes |
| Archive a saved query | Yes |
| Execute a saved query and wait for results | Yes |
| Execute raw DuneSQL directly (no saved query needed) | Yes |
| Fetch results of a previous execution | Yes |
| Search the Dune dataset catalog | Yes |
| Find decoded tables for a contract address | Yes |
| Search Dune documentation | No |
| Show credit and resource usage | Yes |
| 命令 | 描述 | 是否需要认证 |
|---|---|---|
| 将API密钥保存至配置文件 | 否 |
| 创建新的已保存查询 | 是 |
| 获取已保存查询的SQL语句与元数据 | 是 |
| 更新现有查询 | 是 |
| 归档已保存查询 | 是 |
| 执行已保存查询并等待结果 | 是 |
| 直接执行原生DuneSQL(无需保存查询) | 是 |
| 获取历史执行的结果 | 是 |
| 搜索Dune数据集目录 | 是 |
| 根据合约地址查找已解码的表格 | 是 |
| 搜索Dune文档 | 否 |
| 查看积分与资源使用情况 | 是 |
undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefineddune_DUNE_API_KEY[REDACTED]query createquery updatequery archive-o json--temp--api-keydune authDUNE_API_KEYdune_DUNE_API_KEY[REDACTED]query createquery updatequery archive-o json--temp--api-keydune authDUNE_API_KEY| Task | Reference |
|---|---|
| Create, get, update, or archive saved queries | query-management.md |
| Execute queries (run, run-sql) or fetch execution results | query-execution.md |
| Search datasets or find tables for a contract address | dataset-discovery.md |
| Search documentation or check account usage | docs-and-usage.md |
| DuneSQL types, functions, common patterns, and pitfalls | dunesql-cheatsheet.md |
| CLI install, authentication, and version recovery | install-and-recovery.md |
| 任务 | 参考文档 |
|---|---|
| 创建、获取、更新或归档已保存查询 | query-management.md |
| 执行查询(run、run-sql)或获取执行结果 | query-execution.md |
| 搜索数据集或根据合约地址查找表格 | dataset-discovery.md |
| 搜索文档或查看账户使用情况 | docs-and-usage.md |
| DuneSQL的类型、函数、常见模式与注意事项 | dunesql-cheatsheet.md |
| CLI安装、认证与版本恢复 | install-and-recovery.md |