# Ethereum Mainnet Gas Price & Base Fee

> Ethereum Mainnet Gas Price & Base Fee is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns current Ethereum mainnet gas price in gwei and the latest block base fee via LlamaRPC eth_gasPrice

## Facts

- Endpoint: GET https://api.x402node.dev/chain/eth-gas
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-x402node-dev-12cf2534
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5XiheZXaizAS5hrAIS4ay

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 api-x402node-dev-12cf2534
```

Example prompt: What's the current Ethereum mainnet gas price in gwei right now, including the latest block base fee? I want to decide whether to deploy my smart contract now or wait for cheaper gas.

## When to prefer this

Use this endpoint when an AI agent needs real-time Ethereum mainnet gas price data to time on-chain operations, estimate transaction or contract deployment costs, or decide whether current gas conditions are favorable. Prefer over Ethereum-specific alternatives when no API key is available and a simple gwei + base fee response is sufficient. For Base L2 gas pricing, use the sibling Base gas endpoint instead.

## Known failure modes

- LlamaRPC upstream unavailable — service returns error or stale data
- Network congestion causing delayed response
- Payment of $0.005 USDC not fulfilled — 402 payment required error
- Returned base fee may be slightly stale if latest block not yet propagated

## How this service works

Ethereum mainnet current gas price (gwei) via LlamaRPC eth_gasPrice plus latest block base fee. Use no params. Built for AI agents timing on-chain ops, contract deployment cost estimation, ethereum gas fee estimate Accepts payment on Base or Solana — either network works.

## Output

Returns the current Ethereum mainnet gas price in gwei (from eth_gasPrice) and the latest block's base fee, enabling cost estimation for transactions and contract deployments on Ethereum mainnet.

## Request schema (JSON Schema)

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

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-x402node-dev-12cf2534/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
