# Ethereum Gas Price History

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

Returns per-block base fee, block fullness, and priority fee percentiles for the last N Ethereum blocks, plus aggregate low/average/high summaries.

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/eth/gas-history?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Provider: agent-data-tools.revmesh2074.workers.dev
- Website: https://agent-data-tools.revmesh2074.workers.dev
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-ethereum-gas-price-history-e986ccc2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_URzHLtAOzjT3cB31zEcaL

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 agent-data-tools-revmesh2074-workers-dev-ethereum-gas-price-history-e986ccc2
```

Example prompt: Can you pull the Ethereum gas price history for the last 50 blocks and tell me whether fees are trending up or down and what priority fee I should use?

## When to prefer this

Use this endpoint when you need a historical window of Ethereum gas data to judge trends, pick an appropriate priority fee, or decide whether to wait before submitting a transaction. For just the current gas price without history, use the eth_gas endpoint instead. Prefer this over raw RPC calls when you want pre-computed percentiles and aggregates without parsing raw eth_feeHistory yourself.

## Known failure modes

- blocks parameter out of range (< 5 or > 100) returns validation error
- RPC node temporarily unavailable returns 5xx error
- Network connectivity issues may cause timeouts
- Payment not included or insufficient returns 402 response (first 25 calls free)

## How this service works

Gas price history on Ethereum (eth_feeHistory): base fee in gwei for each of the last N blocks (5-100, default 20), how full each block was, and the 10th, 50th and 90th percentile priority fees, with the low, average and high base fee over the window. Use to judge whether fees are rising, pick a priority fee or time a transaction; for the current price alone use eth_gas.

## Output

A JSON object containing: the chain name and ID, the requested block range (fromBlock, toBlock), a per-block array with block number, base fee in gwei, gas used ratio, and a [p10, p50, p90] priority fee array; plus aggregate baseFeeGwei stats (low, average, high, latest, next) and priorityFeeGwei percentiles (p10, p50, p90) across the window.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "blocks": {
   "type": "integer",
   "description": "How many recent blocks, 5-100 (default 20)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chain": {
   "type": "string"
  },
  "blocks": {
   "type": "number"
  },
  "chainId": {
   "type": "number"
  },
  "history": {
   "type": "array",
   "items": {
    "type": "object",
    "properties": {
     "block": {
      "type": "number"
     },
     "baseFeeGwei": {
      "type": "number"
     },
     "gasUsedRatio": {
      "type": "number"
     },
     "priorityFeeGwei": {
      "type": "array",
      "items": {
       "type": "number"
      }
     }
    }
   }
  },
  "toBlock": {
   "type": "number"
  },
  "fromBlock": {
   "type": "number"
  },
  "baseFeeGwei": {
   "type": "object",
   "properties": {
    "low": {
     "type": "number"
    },
    "high": {
     "type": "number"
    },
    "next": {
     "type": "number"
    },
    "latest": {
     "type": "number"
    },
    "average": {
     "type": "number"
    }
   }
  },
  "priorityFeeGwei": {
   "type": "object",
   "properties": {
    "p10": {
     "type": "number"
    },
    "p50": {
     "type": "number"
    },
    "p90": {
     "type": "number"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/agent-data-tools-revmesh2074-workers-dev-ethereum-gas-price-history-e986ccc2/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)
