# x402 Gas Price Oracle

> x402 Gas Price Oracle is a paid API for AI agents from agentx402pay.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-20).

Returns current gas price and EIP-1559 fee estimates (base fee, priority fee) for major EVM chains including Base, Ethereum, Polygon, Arbitrum, and Optimism

## Facts

- Endpoint: GET https://agentx402pay.com/api/gas-price?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-gas-price-oracle-1b2344d7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tXFajXcriJmQFlpUAxpET

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 x402-gas-price-oracle-1b2344d7
```

Example prompt: What are the current gas prices on Ethereum right now, including the EIP-1559 base fee and priority fee?

## When to prefer this

Use this endpoint when an AI agent needs real-time gas fee data for EVM-compatible chains before submitting transactions, estimating costs, or deciding which chain to use. Prefer this over general crypto market APIs when you specifically need network fee data (gas) rather than token prices or market cap data.

## Known failure modes

- Unsupported chain name returns an error or defaults to Base
- Stale data if upstream node is lagging
- Network connectivity issues causing timeout
- Invalid query parameter format returning a 400 error

## How this service works

Current gas price and EIP-1559 fee estimate for a chain (base, ethereum, polygon, arbitrum, optimism)

## Output

Returns the current gas price and EIP-1559 fee breakdown (base fee and priority fee/max fee) for the requested EVM-compatible chain. Data reflects live on-chain conditions for chains including Base, Ethereum, Polygon, Arbitrum, and Optimism.

## 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": "Chain to query: base, ethereum, polygon, arbitrum, optimism (default base)"
      }
     }
    }
   },
   "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/x402-gas-price-oracle-1b2344d7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agentx402pay.com](https://www.zero.xyz/host/agentx402pay.com/llms.txt)
