# Ethereum Gas Price Lookup

> Ethereum Gas Price Lookup is a paid API for AI agents from agent-data-tools.revmesh2074.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-22).

Returns current Ethereum mainnet gas price data including base fee, priority fee, gas price, and estimated ETH transfer cost in gwei and ETH.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/eth/gas?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-gas-price-lookup-b02ab3f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_kiE-cFjZ8HbAe2XFNmqm8

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ethereum-gas-price-lookup-b02ab3f3
```

Example prompt: What are the current gas fees on Ethereum right now — base fee, priority fee, and how much would a simple ETH transfer cost?

## When to prefer this

Choose this endpoint when you need a quick, cheap ($0.001 USDC), no-account-required snapshot of current Ethereum mainnet gas fees, especially in agent workflows that need to gate transactions on gas cost or display live fee estimates to users. Prefer this over free RPC calls when you want a managed, reliable service with public uptime stats and x402 micropayment compatibility.

## Known failure modes

- Upstream RPC node unavailable — may return 5xx error
- Stale data if block propagation is delayed
- Rate limiting or payment failure may prevent call completion (though failed calls are not charged)
- No historical data — only current block snapshot returned

## How this service works

Current gas price on Ethereum (eth_gasPrice): gas price, base fee and suggested priority fee in gwei, plus what a plain ETH transfer (21,000 gas) costs right now. Takes no input. Use before sending a transaction or to decide whether to wait; for the fee a past transaction actually paid use eth_receipt.

## Output

Returns a JSON object with the current Ethereum block number, chain name ('Ethereum'), chain ID (1), native token symbol ('ETH'), base fee in gwei, total gas price in gwei, EIP-1559 priority fee (tip) in gwei, and estimated cost of a standard ETH transfer in ETH.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "only": {
   "type": "string",
   "description": "Optional: comma-separated top-level result keys to keep, for a smaller answer (for example only=price,symbol); unknown keys are ignored and an empty match returns the full result"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "block": {
   "type": "number"
  },
  "chain": {
   "type": "string"
  },
  "symbol": {
   "type": "string"
  },
  "chainId": {
   "type": "number"
  },
  "baseFeeGwei": {
   "type": "string"
  },
  "gasPriceGwei": {
   "type": "string"
  },
  "transferCost": {
   "type": "string"
  },
  "priorityFeeGwei": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-gas-price-lookup-b02ab3f3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agent-data-tools.revmesh2074.workers.dev](https://www.zero.xyz/host/agent-data-tools.revmesh2074.workers.dev/llms.txt)
