# Multi-Chain Gas Price Oracle

> Multi-Chain Gas Price Oracle is a paid API for AI agents from opportunity-api-production.up.railway.app, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns live gas prices in gwei across Ethereum, Base, Arbitrum, Optimism, and Polygon in a single API call using public RPCs.

## Facts

- Endpoint: GET https://opportunity-api-production.up.railway.app/api/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/multi-chain-gas-price-oracle-7eab57b1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_g3h4V3RqJ994IOF6xS5d7

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 multi-chain-gas-price-oracle-7eab57b1
```

Example prompt: What are the current gas prices in gwei across Ethereum, Base, Arbitrum, Optimism, and Polygon right now? I want to figure out which chain is cheapest before I submit my transaction.

## When to prefer this

Choose this endpoint when you need a quick, no-parameter snapshot of gas prices across all major EVM-compatible chains simultaneously. It is ideal for cross-chain transaction routing decisions, DeFi automation bots, or any agent that needs to compare network fees before executing on-chain actions.

## Known failure modes

- Public RPC node downtime may cause stale or missing data for one or more chains
- Rate limiting on underlying public RPCs could result in partial or failed responses
- Network congestion may cause slight delays in gwei readings
- If all RPCs are unresponsive, the endpoint may return an error or empty data

## How this service works

Live gas prices in gwei across Ethereum, Base, Arbitrum, Optimism, Polygon in one call (public RPCs).

## Output

Returns live gas prices in gwei for all five chains — Ethereum mainnet, Base, Arbitrum, Optimism, and Polygon — fetched simultaneously from public RPCs in a single response.

## 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",
     "required": [],
     "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/multi-chain-gas-price-oracle-7eab57b1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from opportunity-api-production.up.railway.app](https://www.zero.xyz/host/opportunity-api-production.up.railway.app/llms.txt)
