# Ethereum Gas Conditions Snapshot

> Ethereum Gas Conditions Snapshot is a paid API for AI agents from onchaincheck.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-29).

Returns current Ethereum network gas metrics including block number, base fee, gas price, priority fee in gwei, and estimated ETH and USD costs for native and ERC-20 transfers.

## Facts

- Endpoint: GET https://onchaincheck.dev/eth/gas?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-gas-conditions-snapshot-997358ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_iph3xMko9qtKT_fqqHmL0

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-conditions-snapshot-997358ef
```

Example prompt: What are the current Ethereum gas conditions — give me the base fee, gas price, and priority fee in gwei, plus how much a native ETH transfer and an ERC-20 transfer would cost right now in both ETH and USD.

## When to prefer this

Choose this endpoint when you need real-time Ethereum gas metrics in a single call without running your own node — especially useful for pre-transaction cost estimation, gas timing logic, or displaying live fee data in a UI. Prefer this over raw RPC calls when you also need USD cost estimates using a reliable oracle price feed without additional integration work.

## Known failure modes

- Ethereum node unavailable or lagging — may return stale block data
- Chainlink ETH/USD oracle feed delay — USD estimates may be slightly outdated
- Rate limiting or payment failure — 402 response if x402 payment not included or rejected
- Network congestion causing response latency spikes

## How this service works

Current Ethereum gas conditions: block number, base fee, gas price and priority fee in gwei, and the estimated cost in ETH and USD of a native transfer and an ERC-20 transfer (Chainlink ETH/USD).

## Output

A JSON object containing the chain identifier ('eth'), current block number, block timestamp, ETH/USD price, base fee in gwei, gas price in gwei, max priority fee in gwei, and estimated costs for a native ETH transfer and an ERC-20 transfer expressed in both native ETH and USD.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "required": {
   "type": "string"
  },
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "eth",
  "blockTime": "2026-10-22T15:49:59.000Z",
  "nativeUsd": 2398.41,
  "baseFeeGwei": "0.316485501",
  "blockNumber": 26249161,
  "gasPriceGwei": "0.316485501",
  "nativeSymbol": "ETH",
  "estimatedCost": {
   "erc20Transfer": {
    "usd": 0.04934,
    "native": "0.000020571557565"
   },
   "nativeTransfer": {
    "usd": 0.01594,
    "native": "0.000006646195521"
   }
  },
  "maxPriorityFeeGwei": "0.000003839"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-gas-conditions-snapshot-997358ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from onchaincheck.dev](https://www.zero.xyz/host/onchaincheck.dev/llms.txt)
