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

Scope

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

This skill does not cover:

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

Gas Intelligence

Guardrails

References