Crypto DataLive

Gas Price API

Estimates current gas prices and EIP-1559 fees on Base, Ethereum, Optimism, and Arbitrum.

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

Overview

Estimates current gas prices and EIP-1559 fees on Base, Ethereum, Optimism, and Arbitrum. Reads the chain's latest block, derives base fee, suggests priority fees for safe-low/standard/fast tiers, computes total maxFeePerGas, and converts cost to USD for common tx types. Use it as a gas price API, EIP-1559 fee estimator, multi-chain gas tracker, or pre-tx cost estimator.

Endpoint

MethodEndpointPriceDescription
POST/v1/marketplace/api/gas-price$0.023Invoke Gas Price (Crypto Data) 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 -X POST https://jarvisclaw.ai/v1/marketplace/api/gas-price \
  -H 'Content-Type: application/json' \
  -d '{}'

# 2. Pay it (the SDK signs and retries for you)
curl -X POST https://jarvisclaw.ai/v1/marketplace/api/gas-price \
  -H 'Content-Type: application/json' \
  -H 'X-PAYMENT: <signed-payload>' \
  -d '{}'

Parameters

Taken from the request example this API publishes.

NameInTypeExample
chainbodystring"base"

Example response

{
  "chain": "base",
  "base_fee_gwei": 0.005,
  "priority_fee_gwei": {
    "safe_low": 0.001,
    "standard": 0.001,
    "fast": 0.002
  },
  "total_recommended_gwei": 0.006,
  "block_number": 27500000,
  "eth_price_usd": 3500,
  "cost_usd": {
    "transfer": 0.0008,
    "erc20_transfer": 0.0012,
    "uniswap_swap": 0.004,
    "nft_mint": 0.006
  },
  "timestamp": "2026-05-06T22:00:00Z"
}

FAQ

How much does the Gas Price API cost?

$0.023 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 POST 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