← Back to Skills Marketplace
jolestar

Blockscout OpenAPI Skill

by jolestar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
161
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install blockscout-openapi-skill
Description
Operate Blockscout explorer reads through UXC with a curated OpenAPI schema, instance-specific host selection, and read-first guardrails.
README (SKILL.md)

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.
  • 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

  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-balances
  • get:/addresses/{address_hash}/transactions

Token, Transaction, And Block Reads

  • get:/tokens/{address_hash}
  • get:/tokens/{address_hash}/holders
  • get:/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 to uxc \x3Cblockscout_api_v2_host> --schema-url \x3Cblockscout_openapi_schema> \x3Coperation> ....

References

Usage Guidance
This skill appears coherent and read-only, but before installing: (1) ensure you trust the local 'uxc' CLI the skill expects to call (the skill delegates auth/requests to uxc); (2) verify the curated OpenAPI schema URL (raw.githubusercontent.com) if you have supply-chain concerns; (3) do not link the CLI to hosts you don't trust — linking binds the command to a target host and subsequent calls will query that host; (4) if you will target protected/self-hosted Blockscout instances, configure credentials via your own 'uxc auth' and avoid embedding secrets in skill files; (5) the included validate.sh is a harmless repo check but requires jq and ripgrep (rg) if you run it locally. If any of these assumptions are unacceptable, review or modify the SKILL.md and schema before use.
Capability Analysis
Type: OpenClaw Skill Name: blockscout-openapi-skill Version: 1.0.0 The skill bundle provides a legitimate read-only interface for interacting with the Blockscout blockchain explorer API via the `uxc` utility. It includes a standard OpenAPI schema (blockscout-v2.openapi.json), a validation script (validate.sh), and clear instructions in SKILL.md that emphasize read-first guardrails and public API access without evidence of malicious intent or data exfiltration.
Capability Assessment
Purpose & Capability
Name, description, and included files (OpenAPI schema and usage docs) align with a read-only Blockscout explorer skill. The only runtime dependency the skill documents is the 'uxc' CLI and a target Blockscout host, which is appropriate for the described functionality.
Instruction Scope
SKILL.md confines runtime actions to linking/using the 'uxc' CLI and an OpenAPI-based 'blockscout-openapi-cli' command for read operations. It explicitly declares read-only guardrails and does not instruct the agent to read or exfiltrate unrelated local files or environment variables. It does assume network access and use of a GitHub raw URL for the schema.
Install Mechanism
There is no install spec (instruction-only), which is low risk. The repo includes a validate.sh script that requires jq and rg for local validation; this is a development/CI helper and not an installation of remote code. The skill does reference fetching a schema from raw.githubusercontent.com (a common release host) — understandable for a curated schema but worth auditing if you distrust that URL.
Credentials
The skill declares no required environment variables or credentials. It notes that protected/self-hosted instances may require auth managed via the caller's 'uxc auth' bindings, which is proportionate and keeps credentials out of the skill itself.
Persistence & Privilege
The skill does not request always: true, does not modify other skills, and uses the platform default (agent-invocable). It does not ask to write system-wide configuration beyond linking a command via 'uxc', which is consistent with its purpose.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install blockscout-openapi-skill
  3. After installation, invoke the skill by name or use /blockscout-openapi-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial release of the blockscout-openapi-skill: - Provides read-access to Blockscout explorer via curated OpenAPI schema and uxc integration. - Supports essential explorer operations: address details, token balances, transaction history, token and block lookups. - Requires no authentication for public explorers; supports uxc auth for protected instances. - Includes host relinking for multi-instance support. - Enforces read-only usage and JSON output for reliable automation.
Metadata
Slug blockscout-openapi-skill
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Blockscout OpenAPI Skill?

Operate Blockscout explorer reads through UXC with a curated OpenAPI schema, instance-specific host selection, and read-first guardrails. It is an AI Agent Skill for Claude Code / OpenClaw, with 161 downloads so far.

How do I install Blockscout OpenAPI Skill?

Run "/install blockscout-openapi-skill" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is Blockscout OpenAPI Skill free?

Yes, Blockscout OpenAPI Skill is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does Blockscout OpenAPI Skill support?

Blockscout OpenAPI Skill is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created Blockscout OpenAPI Skill?

It is built and maintained by jolestar (@jolestar); the current version is v1.0.0.

💬 Comments