# ChainRead Gas & Fees

> ChainRead Gas & Fees is a paid API for AI agents from chainread.imac2014ville.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Returns current gas price, base fee, priority fee tiers, ETH/USD price, and estimated transaction costs for Base or Ethereum mainnet

## Facts

- Endpoint: GET https://chainread.imac2014ville.workers.dev/gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainread-gas-fees-c1ebb423
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5g8nn3cEF1zUPdhCa3hDA

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 chainread-gas-fees-c1ebb423
```

Example prompt: What are the current gas fees on Base — give me the base fee, priority fee tiers, and how much a standard ETH transfer would cost in USD right now?

## When to prefer this

Use this endpoint when your agent needs real-time EVM gas pricing data for Base or Ethereum mainnet without provisioning an API key — ideal for cost estimation before submitting transactions, UX display of current fees, or dynamic gas strategy decisions. Prefer this over general blockchain RPC calls when you want a clean, pre-computed fee estimate in USD with tiered priority levels for $0.001 USDC per call.

## Known failure modes

- Invalid chain parameter value (not 'base' or 'ethereum') returns an error
- RPC node outage may cause stale or unavailable fee data
- Payment failure (insufficient USDC or x402 protocol error) blocks the request
- Network congestion may cause response latency spikes

## How this service works

Cheap EVM read utilities for AI agents on Base and Ethereum mainnet: gas and fees, blocks, balances, ERC-20 metadata, contract inspection, transaction status, ENS/Basename resolution, bulk balances. No API key: pay USDC on Base per call via x402.

## Output

A JSON object containing: the chain queried, current ETH/USD price, base fee in gwei, priority fee estimates (low/standard/fast in gwei), and per-operation cost estimates (gas units, cost in ETH, cost in USD) for common transaction types like ETH transfers.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "Chain to read (default base)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "chain": "base",
  "ethUsd": 2450.3,
  "estimates": {
   "ethTransfer": {
    "costEth": 1.2e-7,
    "costUsd": 0.0003,
    "gasUnits": 21000
   }
  },
  "baseFeeGwei": 0.0053,
  "priorityFeeGwei": {
   "low": 0.001,
   "fast": 0.002,
   "standard": 0.0012
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainread-gas-fees-c1ebb423/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainread.imac2014ville.workers.dev](https://www.zero.xyz/host/chainread.imac2014ville.workers.dev/llms.txt)
