# Agent Data Tools: Gas Price & Fee Estimator

> Agent Data Tools: Gas Price & Fee Estimator 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-29).

Returns current gas price, base fee, priority fee, and ETH transfer cost for a specified EVM chain

## Facts

- Endpoint: GET https://agent-data-tools.revmesh2074.workers.dev/op/gas?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/agent-data-tools-gas-price-fee-estimator-9c91f4c0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_NDugXeraRw9JK2c5SR9Zt

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-gas-price-fee-estimator-9c91f4c0
```

Example prompt: What's the current gas price on Optimism right now — base fee, priority fee, and what a simple ETH transfer would cost?

## When to prefer this

Use this endpoint when an AI agent needs live on-chain gas fee data for Base, Ethereum, Arbitrum, Optimism, or Polygon without requiring an API key or monthly subscription — ideal for pay-per-call agentic workflows using x402/USDC micropayments.

## Known failure modes

- Unsupported chain name or ID returns an error or empty response
- RPC node unavailability causes stale or failed data
- Network congestion may cause slight latency in block data
- Payment not confirmed results in 402 and no charge

## How this service works

Current gas price on Optimism (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 op_receipt.

## Output

A JSON object containing the current block number, chain name and ID, base fee in Gwei, total gas price in Gwei, priority/tip fee in Gwei, and the estimated cost in ETH for a standard ETH transfer on the queried chain.

## 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/agent-data-tools-gas-price-fee-estimator-9c91f4c0/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)
