Crypto DataLive

Estimate Gas API

Estimate the gas a transaction will use via eth_estimateGas — the pre-send read every tx-building, trading and settlement agent makes to size gas and avoid out-of-gas reverts.

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

Overview

Estimate the gas a transaction will use via eth_estimateGas — the pre-send read every tx-building, trading and settlement agent makes to size gas and avoid out-of-gas reverts. Pass from/to/value/data. Across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. Free public RPC; 6 chains vs onesource's Ethereum-only coverage.

Endpoint

MethodEndpointPriceDescription
GET/v1/marketplace/api/estimate-gas-2598$0.1035Invoke Estimate Gas (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 https://jarvisclaw.ai/v1/marketplace/api/estimate-gas-2598

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

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