Ethereum gas estimate

$0.01 per call · failed calls are never charged · no account or API key needed

Estimate the gas a transaction would use on Ethereum (eth_estimateGas) and what it would cost at the current gas price, in gas units, gwei and ETH. Give to, plus value in ETH and calldata for a contract call, and the sender when the call depends on it. Use before sending a transaction or to price a batch; for the gas price alone use eth_gas. A transaction that would revert is 422 with the reason, uncharged.

Run it free (25 free calls) Buy credits by card (from $5) Example result (JSON)

Try it with your own inputs

0x recipient or contract address

Uses one of your 25 free calls. Nothing is charged, and a call that fails is not counted.

Inputs

NameTypeDescription
to (required)string0x recipient or contract address
fromstring0x sender address (default: an empty address)
valuestringAmount of ETH to send, in ETH (default 0)
datastringOptional 0x calldata for a contract call

Request

Over HTTP, with a card key from /credits:

curl -H "Authorization: Bearer adt_…" "https://agent-data-tools.revmesh2074.workers.dev/eth/estimate-gas?to=0x000000000000000000000000000000000000dEaD"

Or one of your 25 free calls, no key:

curl "https://agent-data-tools.revmesh2074.workers.dev/eth/estimate-gas?to=0x000000000000000000000000000000000000dEaD&trial=1"

Without a key, the same URL answers 402 Payment Required with x402 and MPP terms, so an agent with a wallet pays per call in USDC (Base, Polygon, Arbitrum or Solana over x402; Base or Tempo over MPP) and retries.

Example result

{
  "chain": "Ethereum",
  "chainId": 1,
  "to": "0x000000000000000000000000000000000000dEaD",
  "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",
  "value": "0",
  "gas": "21000",
  "gasPriceGwei": "0.012",
  "cost": "0.000000252",
  "symbol": "ETH",
  "block": 123456789
}

From an AI agent (MCP)

Add the MCP server to Claude, Cursor or any MCP client. This tool is eth_estimate_gas, and the first 25 successful calls are free:

https://agent-data-tools.revmesh2074.workers.dev/mcp

Related tools