# x402node Gas Oracle

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

Returns current base fee plus slow, standard, and fast priority fee tiers and the cost of a standard ETH transfer, so agents can choose the right gas price before submitting a transaction.

## Facts

- Endpoint: GET https://api.x402node.dev/chain/gas-oracle?utm_source=zero.xyz
- Price: $0.006/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402node-gas-oracle-0846427d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4cCjAD58QaDNEQ8gi4EZP

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 x402node-gas-oracle-0846427d
```

Example prompt: What are the current slow, standard, and fast gas fee tiers on this chain right now, including the base fee and the cost of a standard transfer, so I can decide which gas price to use before submitting my transaction?

## When to prefer this

Use this endpoint when an agent needs to determine optimal gas fees before submitting an EVM transaction — especially when fee sensitivity matters (cost optimization vs. speed). Prefer this over static gas estimates or hardcoded values when network conditions are volatile. It is well-suited for DeFi agents, payment automation, and any workflow that needs to decide between slow/standard/fast confirmation tiers in real time.

## Known failure modes

- Chain not supported or unrecognized chain identifier — returns 4xx error
- Upstream node unavailable or rate-limited — returns 5xx error
- Payment header missing or insufficient — returns 402 Payment Required
- Stale block data if the underlying RPC is lagging — may return outdated fee estimates

## How this service works

Live gas oracle with slow, standard and fast fee tiers computed from recent block fee history - current base fee plus recommended priority fees and the cost of a standard transfer, so agents can set the right gas price and decide when to submit transactions. gas oracle, gas price, recommended gas, gas fee tiers, optimal gas, priority fee, gas estimate, when to transact Accepts payment on Base or Solana — either network works.

## Output

Returns the current base fee per gas, recommended priority fees for slow, standard, and fast confirmation tiers derived from recent block fee history, and the total gas cost of a standard ETH transfer — giving agents everything needed to set an appropriate gas price.

## 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": "base (default), eth, arbitrum, optimism, polygon, bsc"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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