# Ethereum Gas Oracle

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

Returns live Ethereum gas prices (safe, proposed, fast) in gwei plus suggested base fee and last block number for fee estimation and transaction timing.

## Facts

- Endpoint: GET https://api.x402node.dev/contract/gas-oracle
- Price: $0.012/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ethereum-gas-oracle-a1515124
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H1FD3NgVwjr4mdpluK3Vm

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-oracle-a1515124
```

Example prompt: What are the current Ethereum gas prices right now — give me the safe, proposed, and fast gwei values plus the suggested base fee and latest block number so I can decide when to send my transaction.

## When to prefer this

Use this endpoint when you need real-time Ethereum gas price tiers (safe/proposed/fast) with base fee data for transaction cost estimation, timing decisions, or DeFi workflow automation — especially when you need structured gwei values from a reliable block-explorer oracle rather than computing them yourself from raw RPC.

## Known failure modes

- Invalid or missing API key returns 401/402 unauthorized
- Block explorer backend unavailable returns 503 or empty response
- Rate limit exceeded returns 429 too many requests
- Network congestion may cause stale data if oracle is lagging behind chain tip

## How this service works

Live Ethereum gas oracle from a block explorer behind an API key: safe, proposed and fast gas prices in gwei plus suggested base fee and last block. For transaction timing and fee estimation. gas oracle, gas price gwei, base fee, gas tracker, ethereum fees Accepts payment on Base or Solana — either network works.

## Output

Returns current Ethereum gas prices in three tiers (safe, proposed, fast) expressed in gwei, along with the suggested base fee and the most recent block number, sourced from a live block explorer gas oracle.

## Example request

```json
{
 "top": "10"
}
```

## 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": {
       "type": "string",
       "description": "default ethereum (oracle is mainnet)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ethereum-gas-oracle-a1515124/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)
