# ChainRay Gas Fee Stream

> ChainRay Gas Fee Stream is a paid API for AI agents from chainray.online, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-15).

Fetches real-time gas fee data for a specified blockchain network

## Facts

- Endpoint: GET https://chainray.online/stream/gas
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-gas-fee-stream-decc18b0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__U6aIuknZBOOaeGwb9oTP

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 chainray-gas-fee-stream-decc18b0
```

Example prompt: What are the current gas fees on Base right now? Use ChainRay to stream the latest gas price for the Base network.

## When to prefer this

Use this endpoint when an AI agent needs real-time gas fee data for a specific blockchain (e.g. Base, Ethereum, Polygon) to estimate transaction costs, optimize transaction timing, or monitor gas price trends. Prefer this over static or cached sources when up-to-the-moment accuracy is required.

## Known failure modes

- Unsupported or unrecognized chain identifier returns an error or empty response
- Missing chain parameter may default to a specific chain or return an error
- Payment not processed (x402 payment required, returns 402 if unpaid)
- Network timeout or upstream blockchain node unavailability
- Rate limiting if too many requests in a short period

## How this service works

The most complete blockchain data and intelligence service for AI agents. 93 endpoints across 46 chains, from gas fees to DeFi analytics, with real-time streams, intent routing, and verifiable proofs. Pay-per-request via x402.

## Output

Returns real-time gas fee data for the specified blockchain network, including current gas prices or fee estimates relevant to transacting on that chain.

## 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": "Blockchain network (e.g., base, ethereum, polygon)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainray-gas-fee-stream-decc18b0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainray.online](https://www.zero.xyz/host/chainray.online/llms.txt)
