# meld402 Gas Oracle — Multi-Chain Gas Price Feed

> meld402 Gas Oracle — Multi-Chain Gas Price Feed is a paid API for AI agents from meld402.vercel.app, paid per call via x402, $0.05/call, status unknown (last checked 2026-09-15).

Returns current gas prices (in wei and gwei) for one or more EVM-compatible chains via a single USDC-paid API call backed by Alchemy.

## Facts

- Endpoint: POST https://meld402.vercel.app/api/gas/oracle
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/meld402-gas-oracle-multi-chain-gas-price-feed-87ffe7f6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_FsX99QCY0NKGXeF7iVIlr

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 meld402-gas-oracle-multi-chain-gas-price-feed-87ffe7f6 -d '<json body>'
```

Example prompt: Can you pull the current gas prices for Ethereum, Arbitrum, Base, and Optimism all at once so I can decide which chain to use for my transaction?

## When to prefer this

Use this endpoint when you need current gas prices across multiple EVM-compatible chains in a single normalized API call, especially when you want to avoid integrating separately with Alchemy or multiple RPC providers. It is ideal for agents that need to compare gas costs across chains before routing a transaction, or for dashboards that display multi-chain fee data. The unified schema and single USDC micropayment model make it particularly suited for autonomous agent workflows on Base using x402.

## Known failure modes

- Invalid chain identifier returns an error or omits that chain from results
- Alchemy API outage causes the chain to appear in the degraded list with partial or missing data
- Payment failure over x402 returns a 402 response before data is delivered
- Passing an empty chains array may return all supported chains or an error depending on implementation
- Network timeouts from upstream providers cause stale or missing timestamps

## How this service works

14 paid data endpoints for autonomous agents and developers. Covers crypto intelligence (token, chain, Solana, gas), markets (FX, market pulse), location (weather), and research (news, brief). Each route aggregates multiple public sources into one stable schema with a single USDC payment over x402 on Base.

## Output

A JSON object containing an array of chain entries each with network name, timestamp, gas price in wei, and gas price in gwei; plus metadata including the data generation timestamp, source attribution (Alchemy), and a degraded list indicating any sources that returned partial or no data.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chains": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "description": "Specific chains to query (eth, polygon, arb, opt, base, etc.)"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": {
   "chains": [
    {
     "network": "eth",
     "timestamp": "2026-08-24T00:00:00.000Z",
     "gas_price_wei": "20000000000",
     "gas_price_gwei": 20
    },
    {
     "network": "polygon",
     "timestamp": "2026-08-24T00:00:00.000Z",
     "gas_price_wei": "30000000000",
     "gas_price_gwei": 30
    },
    {
     "network": "arb",
     "timestamp": "2026-08-24T00:00:00.000Z",
     "gas_price_wei": "100000000",
     "gas_price_gwei": 0.1
    },
    {
     "network": "opt",
     "timestamp": "2026-08-24T00:00:00.000Z",
     "gas_price_wei": "50000000",
     "gas_price_gwei": 0.05
    },
    {
     "network": "base",
     "timestamp": "2026-08-24T00:00:00.000Z",
     "gas_price_wei": "20000000",
     "gas_price_gwei": 0.02
    }
   ],
   "generated_at": "2026-08-24T00:00:00.000Z"
  },
  "meta": {
   "as_of": "2026-08-24T00:00:00.000Z",
   "sources": [
    "alchemy"
   ],
   "degraded": [],
   "attribution": [
    "Gas data by Alchemy (alchemy.com)"
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/meld402-gas-oracle-multi-chain-gas-price-feed-87ffe7f6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from meld402.vercel.app](https://www.zero.xyz/host/meld402.vercel.app/llms.txt)
