/install blocknative-openapi-skill
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
uxcis installed and available inPATH.- 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
-
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
-
Inspect operation schema first:
blocknative-openapi-cli get:/chains -hblocknative-openapi-cli get:/gasprices/blockprices -hblocknative-openapi-cli get:/gasprices/basefee-estimates -h
-
Prefer narrow validation before broader polling:
blocknative-openapi-cli get:/chainsblocknative-openapi-cli get:/gasprices/blockprices chainid=1blocknative-openapi-cli get:/gasprices/basefee-estimates
-
Execute with key/value parameters:
blocknative-openapi-cli get:/gasprices/blockprices chainid=1 confidenceLevels=70,90,99blocknative-openapi-cli get:/gasprices/blockprices system=story network=mainnetblocknative-openapi-cli get:/gasprices/distribution chainid=1
Operation Groups
Discovery
get:/chains
Gas Intelligence
get:/gasprices/blockpricesget:/gasprices/basefee-estimatesget:/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.
blockpricescan be polled without auth on some plans, butbasefee-estimatesanddistributionrequire 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.
distributionis Ethereum-mainnet focused in the current docs. Do not assume multi-chain coverage there just becauseblockpricessupports many chains.- Keep
confidenceLevelsnarrow and explicit when you do not need the full default ladder. blocknative-openapi-cli \x3Coperation> ...is equivalent touxc https://api.blocknative.com --schema-url \x3Cblocknative_openapi_schema> \x3Coperation> ....
References
- Usage patterns:
references/usage-patterns.md - Curated OpenAPI schema:
references/blocknative-gas.openapi.json - Blocknative Gas Price API docs: https://docs.blocknative.com/gas-prediction/gas-platform
- Blocknative Base Fee API docs: https://docs.blocknative.com/gas-prediction/prediction-api-base-fee-and-blob-fee
- Blocknative Gas Distribution API docs: https://docs.blocknative.com/gas-prediction/gas-distribution-api
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install blocknative-openapi-skill - 安装完成后,直接呼叫该 Skill 的名称或使用
/blocknative-openapi-skill触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Blocknative Openapi Skill 是什么?
Operate Blocknative gas intelligence APIs through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 203 次。
如何安装 Blocknative Openapi Skill?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install blocknative-openapi-skill」即可一键安装,无需额外配置。
Blocknative Openapi Skill 是免费的吗?
是的,Blocknative Openapi Skill 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Blocknative Openapi Skill 支持哪些平台?
Blocknative Openapi Skill 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Blocknative Openapi Skill?
由 jolestar(@jolestar)开发并维护,当前版本 v1.0.0。