← 返回
未分类 Key 中文

Blocknative Openapi Skill

Operate Blocknative gas intelligence APIs through UXC with a curated OpenAPI schema, API-key auth, and read-first guardrails.
通过UXC操作Blocknative气体情报API,使用精选的OpenAPI规范、API密钥认证以及只读防护机制。
jolestar jolestar 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 需要
★ 0
Stars
📥 421
下载
💾 1
安装
1
版本
#latest

概述

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
  1. 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
  1. 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
  1. 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 ... is equivalent to uxc https://api.blocknative.com --schema-url ....

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

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-02 12:07 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-agent

Self-Improving + Proactive Agent

ivangdavila
自我反思+自我批评+自我学习+自组织记忆。智能体评估自身工作、发现错误并持续改进。
★ 1,412 📥 325,279
knowledge-management

DeepWiki MCP Skill

jolestar
使用 DeepWiki MCP 向任何 GitHub 仓库提问和阅读文档。用于需要理解代码库、查找特定 API 或获取信息。
★ 0 📥 789
ai-agent

Find Skills

guipi888
场景驱动+关键词双模式技能发现工具。当用户用自然语言描述场景/需求(如"我想做一个海报""帮我分析股票"),或明确说"安装技能/find skills/找个skill"时,自动从官方内置、本地已安装、SkillHub、虾评、GitHub、C
★ 1,494 📥 558,377