FinanceLive

Gas Oracle API

Ethereum gas price oracle. Returns the current Ethereum gas price as an EIP-1559 base fee plus priority-fee estimates across five confidence tiers, all in gwei, so an agent can…

$0.0115USDC per call · settled on Base · no subscription, no API key

Overview

Ethereum gas price oracle. Returns the current Ethereum gas price as an EIP-1559 base fee plus priority-fee estimates across five confidence tiers, all in gwei, so an agent can price a transaction before it signs one. Ethereum mainnet only. Keyless, via Blocknative.

Endpoint

MethodEndpointPriceDescription
GET/v1/marketplace/api/gas-oracle-4217$0.0115Invoke Gas Oracle (Finance) and return the upstream response.

How to call it

Requests are paid per call over the x402 protocol. Call the endpoint, receive a 402 Payment Required quote, then repeat the request with the signed payment header. The SDKs do both steps for you.

# 1. Ask for a quote
curl -i https://jarvisclaw.ai/v1/marketplace/api/gas-oracle-4217

# 2. Pay it (the SDK signs and retries for you)
curl -H "X-PAYMENT: <signed-payload>" https://jarvisclaw.ai/v1/marketplace/api/gas-oracle-4217

Example response

{
  "count": 1,
  "items": [
    {
      "type": "gas_oracle",
      "chain": "ethereum",
      "unit": "gwei",
      "baseFeePerGas": 0.111,
      "estimates": [
        {
          "confidence": 99,
          "price": 0.21,
          "maxFeePerGas": 0.32,
          "maxPriorityFeePerGas": 0.098
        }
      ]
    }
  ]
}

FAQ

How much does the Gas Oracle API cost?

$0.0115 USDC per call, paid per call over x402. There is no subscription, minimum or monthly fee.

Do I need an API key?

No. Call the endpoint, read the 402 Payment Required quote, and repeat the request with a signed USDC payment header. An account API key also works if you prefer prepaid billing.

Which chains can I pay on?

USDC on Base or on Solana. The 402 quote lists the accepted networks and the exact amount; the JarvisClaw SDKs sign and retry for you.

How do I call it from an AI agent?

Send GET to the endpoint above from any HTTP client, or connect the JarvisClaw MCP server and let the agent find and call it with the search_apis and get_api_detail tools.

Related APIs

Open in the marketplace

Docs: Getting started · x402 payments · x402 discovery · All APIs