Use this skill to run Blockscout explorer operations through uxc + OpenAPI.
Reuse the uxc skill for shared execution, auth, and error-handling guidance.
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.jsonhttps://eth.blockscout.com/api/v2.This skill covers a read-first explorer surface:
This skill does not cover:
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.
command -v blockscout-openapi-cli 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 -hblockscout-openapi-cli get:/addresses/{address_hash} -hblockscout-openapi-cli get:/tokens/{address_hash} -hblockscout-openapi-cli get:/transactions/{hash} -hblockscout-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=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48blockscout-openapi-cli get:/addresses/{address_hash}/transactions address_hash=0xd8da6bf26964af9d7eed9e03e53415d37aa96045blockscout-openapi-cli get:/tokens/{address_hash}/holders address_hash=0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48get:/addresses/{address_hash}get:/addresses/{address_hash}/token-balancesget:/addresses/{address_hash}/transactionsget:/tokens/{address_hash}get:/tokens/{address_hash}/holdersget:/transactions/{hash}get:/blocks/{block_number_or_hash}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
--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/usage-patterns.mdreferences/blockscout-v2.openapi.json共 1 个版本