Blockscout OpenAPI Skill
by @jolestar
Operate Blockscout explorer reads through UXC with a curated OpenAPI schema, instance-specific host selection, and read-first guardrails.
clawhub install blockscout-openapi-skillπ About This Skill
name: blockscout-openapi-skill description: Operate Blockscout explorer reads through UXC with a curated OpenAPI schema, instance-specific host selection, and read-first guardrails.
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
uxc is installed and available in PATH./api/v2.https://raw.githubusercontent.com/holon-run/uxc/main/skills/blockscout-openapi-skill/references/blockscout-v2.openapi.json
https://eth.blockscout.com/api/v2.Scope
This skill covers a read-first explorer surface:
This skill does not cover:
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
1. 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
2. Inspect operation schema first:
- blockscout-openapi-cli get:/addresses/{address_hash} -h
- blockscout-openapi-cli get:/tokens/{address_hash} -h
- blockscout-openapi-cli get:/transactions/{hash} -h
3. Prefer narrow lookup validation before larger history reads:
- blockscout-openapi-cli get:/blocks/{block_number_or_hash} block_number_or_hash=latest
- blockscout-openapi-cli get:/addresses/{address_hash} address_hash=0xd8da6bf26964af9d7eed9e03e53415d37aa96045
- blockscout-openapi-cli get:/tokens/{address_hash} address_hash=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48
4. Execute with key/value parameters:
- blockscout-openapi-cli get:/addresses/{address_hash}/transactions address_hash=0xd8da6bf26964af9d7eed9e03e53415d37aa96045
- blockscout-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}/transactionsToken, 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
--text.ok, kind, protocol, data, error./api/v2. If host help fails, check the deployment path before assuming a protocol mismatch.blockscout-openapi-cli ... is equivalent to uxc --schema-url ... .References
references/usage-patterns.mdreferences/blockscout-v2.openapi.jsonβοΈ Configuration
uxc is installed and available in PATH./api/v2.https://raw.githubusercontent.com/holon-run/uxc/main/skills/blockscout-openapi-skill/references/blockscout-v2.openapi.json
https://eth.blockscout.com/api/v2.