/install blockscout-openapi-skill
Blockscout Explorer API Skill
Use this skill to run Blockscout explorer operations through uxc + OpenAPI.
Reuse the uxc skill for shared execution, auth, and error-handling guidance.
Prerequisites
uxcis installed and available inPATH.- Network access to a Blockscout deployment that exposes
/api/v2. - Access to the curated OpenAPI schema URL:
https://raw.githubusercontent.com/holon-run/uxc/main/skills/blockscout-openapi-skill/references/blockscout-v2.openapi.json
- A target Blockscout instance. Examples in this skill use
https://eth.blockscout.com/api/v2.
Scope
This skill covers a read-first explorer surface:
- address summary lookup
- address token balances
- address transaction history
- token metadata
- token holder reads
- transaction detail lookup
- block detail lookup
This skill does not cover:
- Blockscout GraphQL
- raw JSON-RPC proxying
- write operations or admin/configuration flows
- custom authenticated gateways beyond what the caller explicitly binds
Authentication
Public Blockscout instances usually allow explorer reads without auth.
If you are targeting a self-hosted or gateway-protected instance, configure auth separately with standard uxc auth bindings for that host. This skill does not assume any default credential.
Core Workflow
-
Use the fixed link command by default:
command -v blockscout-openapi-cli- If missing, create it:
uxc link blockscout-openapi-cli https://eth.blockscout.com/api/v2 --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/blockscout-openapi-skill/references/blockscout-v2.openapi.json blockscout-openapi-cli -h
-
Inspect operation schema first:
blockscout-openapi-cli get:/addresses/{address_hash} -hblockscout-openapi-cli get:/tokens/{address_hash} -hblockscout-openapi-cli get:/transactions/{hash} -h
-
Prefer narrow lookup validation before larger history reads:
blockscout-openapi-cli get:/blocks/{block_number_or_hash} block_number_or_hash=latestblockscout-openapi-cli get:/addresses/{address_hash} address_hash=0xd8da6bf26964af9d7eed9e03e53415d37aa96045blockscout-openapi-cli get:/tokens/{address_hash} address_hash=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
-
Execute with key/value parameters:
blockscout-openapi-cli get:/addresses/{address_hash}/transactions address_hash=0xd8da6bf26964af9d7eed9e03e53415d37aa96045blockscout-openapi-cli get:/tokens/{address_hash}/holders address_hash=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
Operation Groups
Address Reads
get:/addresses/{address_hash}get:/addresses/{address_hash}/token-balancesget:/addresses/{address_hash}/transactions
Token, Transaction, And Block Reads
get:/tokens/{address_hash}get:/tokens/{address_hash}/holdersget:/transactions/{hash}get:/blocks/{block_number_or_hash}
Multi-Instance Use
To target a different Blockscout deployment, keep the same schema and relink the command to another host that serves /api/v2:
uxc link blockscout-openapi-cli https://optimism.blockscout.com/api/v2 \
--schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/blockscout-openapi-skill/references/blockscout-v2.openapi.json
Guardrails
- Keep automation on the JSON output envelope; do not use
--text. - Parse stable fields first:
ok,kind,protocol,data,error. - Treat this v1 skill as read-only. Do not imply transaction broadcast or contract write support.
- This schema is designed for Blockscout deployments that expose the explorer REST surface at
/api/v2. If host help fails, check the deployment path before assuming a protocol mismatch. - Pagination and filter options vary across deployments. Start with host help and operation help on the target instance before building large crawls.
blockscout-openapi-cli \x3Coperation> ...is equivalent touxc \x3Cblockscout_api_v2_host> --schema-url \x3Cblockscout_openapi_schema> \x3Coperation> ....
References
- Usage patterns:
references/usage-patterns.md - Curated OpenAPI schema:
references/blockscout-v2.openapi.json - Blockscout API docs: https://docs.blockscout.com/devs/apis-redirect
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install blockscout-openapi-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/blockscout-openapi-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Blockscout OpenAPI Skill 是什么?
Operate Blockscout explorer reads through UXC with a curated OpenAPI schema, instance-specific host selection, and read-first guardrails. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 161 次。
如何安装 Blockscout OpenAPI Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install blockscout-openapi-skill」即可一键安装,无需额外配置。
Blockscout OpenAPI Skill 是免费的吗?
是的,Blockscout OpenAPI Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Blockscout OpenAPI Skill 支持哪些平台?
Blockscout OpenAPI Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Blockscout OpenAPI Skill?
由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。