# chain-gas-price

> chain-gas-price is a paid API for AI agents from chain.intel.rallylive.ca, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-02).

Returns current gas price, base fee, priority fee in gwei, and plain ETH transfer cost for Base, Ethereum, Arbitrum, Optimism, Polygon, or BSC.

## Facts

- Endpoint: GET https://chain.intel.rallylive.ca/chain/gas?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chain-gas-price-b16f5bd2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6AzWH3jdBWQ72gdwZWR_I

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 chain-gas-price-b16f5bd2
```

Example prompt: What's the current gas price on Ethereum right now — base fee, priority fee, and how much a plain ETH transfer would cost me in gwei?

## When to prefer this

Choose this endpoint when you need real-time gas fee data across multiple popular EVM chains in a single, normalized format (gwei + transfer cost). It is especially useful when you need cross-chain gas comparison or want to gate a transaction on current network conditions, without building your own RPC integrations. Prefer this over raw RPC calls when you want a simple, pre-parsed fee summary without handling eth_gasPrice/eth_feeHistory responses yourself.

## Known failure modes

- Unsupported chain specified — only Base, Ethereum, Arbitrum, Optimism, Polygon, and BSC are supported
- Payment not received or insufficient — $0.01 USDC required per call via x402
- Upstream RPC node temporarily unavailable causing stale or missing fee data
- Rate limiting if too many requests are made in rapid succession

## How this service works

Current gas price, base fee and priority fee in gwei plus the cost of a plain transfer, for Base, Ethereum, Arbitrum, Optimism, Polygon or BSC. $0.01 per call.

## Output

Returns the current gas price, base fee, and priority fee in gwei for the requested EVM-compatible chain, plus the estimated cost of a plain native token transfer — enabling informed decisions about transaction timing and cost.

## 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": {}
    }
   },
   "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/chain-gas-price-b16f5bd2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chain.intel.rallylive.ca](https://www.zero.xyz/host/chain.intel.rallylive.ca/llms.txt)
