# 402rpc Ethereum Gas Price Oracle

> 402rpc Ethereum Gas Price Oracle is a paid API for AI agents from 402rpc.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-15).

Returns real-time Ethereum mainnet gas prices including latest block, base fee, historical priority fee percentiles (10th/50th/90th) over the last 20 blocks, and suggested max fees for slow/normal/fast transaction inclusion — all in gwei.

## Facts

- Endpoint: GET https://402rpc.com/v1/eth/gas?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/402rpc-ethereum-gas-price-oracle-28495d58
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ByX0zEnP7Ek9h9ox3y5ZB

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 402rpc-ethereum-gas-price-oracle-28495d58
```

Example prompt: What's the current Ethereum gas price right now — give me the base fee, priority fees, and the suggested max fee for a normal-speed transaction in gwei?

## When to prefer this

Choose this endpoint when you need a neutral, independently operated Ethereum gas oracle not tied to a third-party aggregator or centralized provider. Ideal for agents that need real-time gwei estimates directly from a full node before submitting transactions, or for timing on-chain activity based on recent priority fee history.

## Known failure modes

- Full node temporarily out of sync — may return slightly stale block data
- Payment not processed — returns 402 Payment Required if x402 micropayment fails
- Node connectivity issues — may return 5xx error during network disruption
- Rate limiting if payment protocol fails to complete

## How this service works

Ethereum mainnet gas now, from an independently operated full node: latest block, base fee and the priority fees paid in the last 20 blocks (10th, 50th, 90th percentile), with a suggested max fee for slow, normal and fast inclusion in gwei. Use it before sending a transaction or to time on-chain activity.

## Output

A JSON object containing: the latest Ethereum block number, current base fee in gwei, 10th/50th/90th percentile priority fees from the last 20 blocks in gwei, and three suggested max fee values (slow, normal, fast) for transaction inclusion — all sourced live from an independent full node.

## 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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/402rpc-ethereum-gas-price-oracle-28495d58/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402rpc.com](https://www.zero.xyz/host/402rpc.com/llms.txt)
