← Back to Skills Marketplace
jolestar

Blocknative Openapi Skill

by jolestar · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
203
Downloads
0
Stars
1
Active Installs
1
Versions
Install in OpenClaw
/install blocknative-openapi-skill
Description
Operate Blocknative gas intelligence APIs through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails.
README (SKILL.md)

Blocknative Gas Platform Skill

Use this skill to run Blocknative gas intelligence 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 https://api.blocknative.com.
  • Access to the curated OpenAPI schema URL:
    • https://raw.githubusercontent.com/holon-run/uxc/main/skills/blocknative-openapi-skill/references/blocknative-gas.openapi.json
  • A Blocknative API key for the full v1 surface.

Scope

This skill covers a read-first Blocknative gas intelligence surface:

  • supported chain discovery
  • gas price confidence estimates
  • base fee and blob fee prediction
  • pending gas distribution analysis

This skill does not cover:

  • write operations
  • transaction submission
  • mempool event streaming
  • broader Blocknative product areas outside the selected gas platform endpoints

Authentication

Blocknative uses Authorization header auth. Some discovery and gas reads can work without a key, but this skill standardizes on authenticated requests because basefee-estimates and distribution require a valid API key.

Configure one API-key credential and bind it to api.blocknative.com:

uxc auth credential set blocknative \
  --auth-type api_key \
  --api-key-header Authorization \
  --secret-env BLOCKNATIVE_API_KEY

uxc auth binding add \
  --id blocknative \
  --host api.blocknative.com \
  --scheme https \
  --credential blocknative \
  --priority 100

Validate the active mapping when auth looks wrong:

uxc auth binding match https://api.blocknative.com

Core Workflow

  1. Use the fixed link command by default:

    • command -v blocknative-openapi-cli
    • If missing, create it: uxc link blocknative-openapi-cli https://api.blocknative.com --schema-url https://raw.githubusercontent.com/holon-run/uxc/main/skills/blocknative-openapi-skill/references/blocknative-gas.openapi.json
    • blocknative-openapi-cli -h
  2. Inspect operation schema first:

    • blocknative-openapi-cli get:/chains -h
    • blocknative-openapi-cli get:/gasprices/blockprices -h
    • blocknative-openapi-cli get:/gasprices/basefee-estimates -h
  3. Prefer narrow validation before broader polling:

    • blocknative-openapi-cli get:/chains
    • blocknative-openapi-cli get:/gasprices/blockprices chainid=1
    • blocknative-openapi-cli get:/gasprices/basefee-estimates
  4. Execute with key/value parameters:

    • blocknative-openapi-cli get:/gasprices/blockprices chainid=1 confidenceLevels=70,90,99
    • blocknative-openapi-cli get:/gasprices/blockprices system=story network=mainnet
    • blocknative-openapi-cli get:/gasprices/distribution chainid=1

Operation Groups

Discovery

  • get:/chains

Gas Intelligence

  • get:/gasprices/blockprices
  • get:/gasprices/basefee-estimates
  • get:/gasprices/distribution

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 sending or execution support.
  • blockprices can be polled without auth on some plans, but basefee-estimates and distribution require a valid key. Standardize on auth so mixed workflows do not fail mid-run.
  • These endpoints update at most once per second on paid plans and more slowly on free plans. For automation, start around one poll every 5 to 10 seconds and only tighten that interval when you specifically need fresher paid-plan data.
  • distribution is Ethereum-mainnet focused in the current docs. Do not assume multi-chain coverage there just because blockprices supports many chains.
  • Keep confidenceLevels narrow and explicit when you do not need the full default ladder.
  • blocknative-openapi-cli \x3Coperation> ... is equivalent to uxc https://api.blocknative.com --schema-url \x3Cblocknative_openapi_schema> \x3Coperation> ....

References

Usage Guidance
This skill appears functionally coherent (read-only Blocknative API access via uxc) but the SKILL.md requires a BLOCKNATIVE_API_KEY while the registry metadata does not declare that credential. Before installing: 1) Confirm you trust uxc and that it will store/handle your BLOCKNATIVE_API_KEY securely. 2) Ask the publisher to update the registry metadata to declare the required secret so automated checks can surface it. 3) Run the included scripts/validate.sh locally to verify files and expectations (it requires jq and rg). 4) Verify the OpenAPI schema and the referenced endpoints match Blocknative's official docs and that you only grant a read-only key with minimal scope. If you cannot verify the credential handling or metadata, treat the omission as a red flag and avoid installing until clarified.
Capability Analysis
Type: OpenClaw Skill Name: blocknative-openapi-skill Version: 1.0.0 The skill bundle is a legitimate integration for the Blocknative Gas Platform API. It uses the 'uxc' utility to interact with documented endpoints (e.g., /gasprices/blockprices) via a curated OpenAPI schema. The instructions in SKILL.md and usage-patterns.md focus on standard API authentication and read-only operations, while the scripts/validate.sh file is a utility for ensuring bundle integrity without any malicious side effects.
Capability Assessment
Purpose & Capability
Name, description, SKILL.md, and included OpenAPI schema all align: the skill implements read-only Blocknative gas endpoints via uxc. Requiring uxc in PATH and network access to api.blocknative.com is proportional. However, the registry metadata lists no required env vars or primary credential while the instructions explicitly require a BLOCKNATIVE_API_KEY; that mismatch is unexpected.
Instruction Scope
Runtime instructions are scoped to read-only operations, include guardrails (polling rate, JSON output, do not send transactions), and only direct the agent to use uxc, the included OpenAPI schema, and Blocknative endpoints. Instructions do not attempt to read unrelated files, system secrets, or send data to unexpected endpoints.
Install Mechanism
No install spec (instruction-only) and included files are static (schema, docs, small validation script). This is low-risk: nothing is downloaded or written by an automated installer.
Credentials
SKILL.md instructs binding an API key via a secret environment variable (BLOCKNATIVE_API_KEY) and configuring it in uxc, but the skill registry metadata declares no required env vars or primary credential. The skill does request a sensitive secret (API key) in practice; the omission from metadata is a coherence and transparency problem and could hide the true credential surface to a user or automated checks.
Persistence & Privilege
always:false and default autonomous invocation settings are normal. The skill does not request permanent presence or modify other skills/system-wide settings. The included validate.sh is a local check script and does not alter system state beyond failing when expectations are unmet.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install blocknative-openapi-skill
  3. After installation, invoke the skill by name or use /blocknative-openapi-skill
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Blocknative Gas Intelligence Skill v1.0.0 - Initial release of Blocknative gas intelligence APIs support via UXC using a curated OpenAPI schema. - Enables authenticated, read-only access to gas price estimates, base fee predictions, gas distribution, and supported chain discovery. - Provides setup instructions for authentication and CLI usage. - Establishes guardrails for safe, stable automation with recommended polling intervals and field parsing guidance. - Excludes transaction submission and mempool streaming functionality; focuses solely on selected Blocknative gas platform endpoints.
Metadata
Slug blocknative-openapi-skill
Version 1.0.0
License MIT-0
All-time Installs 1
Active Installs 1
Total Versions 1
Frequently Asked Questions

What is Blocknative Openapi Skill?

Operate Blocknative gas intelligence APIs through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails. It is an AI Agent Skill for Claude Code / OpenClaw, with 203 downloads so far.

How do I install Blocknative Openapi Skill?

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

Is Blocknative Openapi Skill free?

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

Which platforms does Blocknative Openapi Skill support?

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

Who created Blocknative Openapi Skill?

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

💬 Comments