# ChainRay Gas Fee Prediction

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

Returns predicted gas fees for a specified blockchain network

## Facts

- Endpoint: GET https://chainray.online/predict/gas
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainray-gas-fee-prediction-5ced5abe
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_WvZHTylE0ZFYeH56wKx3s

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-prediction-5ced5abe
```

Example prompt: What are the predicted gas fees on Base right now? I want to know if it's cheap enough to submit my transaction.

## When to prefer this

Use this endpoint when an AI agent needs real-time or predicted gas fee data for a specific blockchain before submitting or recommending a transaction. It covers 46 chains including Base, Ethereum, and Polygon, making it ideal for multi-chain applications. Prefer this over generic RPC calls when you need prediction (not just current) data and want a simple pay-per-request model without subscription overhead.

## Known failure modes

- Unsupported chain identifier returns an error or empty result
- Missing required chain parameter may return a default or error
- Payment failure (402) if x402 payment header is not included or USDC balance is insufficient
- Network timeout if the blockchain RPC is slow or unavailable
- Rate limiting if too many requests are sent in quick succession

## 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 predicted gas fee data for the requested blockchain network, including current gas price estimates that an agent can use to decide whether to proceed with a transaction or optimize timing.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "chain": "ethereum"
  }
 }
}
```

## 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-prediction-5ced5abe/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)
