# Chain Gas Price Lookup

> Chain Gas Price Lookup is a paid API for AI agents from store.agentexchange.work, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-13).

Returns current gas prices (fast, average, slow) in gwei for a specified EVM-compatible blockchain

## Facts

- Endpoint: GET https://store.agentexchange.work/chain/gas
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chain-gas-price-lookup-1a3a872a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QGdM28J3MtBcqJhoTRYPz

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-lookup-1a3a872a
```

Example prompt: What are the current gas prices on Base — give me the fast, average, and slow estimates in gwei.

## When to prefer this

Use this endpoint when an AI agent needs real-time on-chain gas price data across major EVM networks before submitting transactions, estimating costs, or deciding whether gas conditions are favorable. Ideal for agents that need to pay-per-call without API key setup and want machine-payable micro-transactions via x402 on Base.

## Known failure modes

- Unsupported chain name returns an error — only base, ethereum, optimism, arbitrum, polygon, gnosis are valid
- Missing 'chain' query param defaults to ethereum
- Payment failure (402) if x402 USDC payment not properly attached
- Network or RPC outage for the requested chain may return stale or error response

## How this service works

Live network gas prices (slow / average / fast, in gwei) for any chain — the pre-transaction read every trading, sniping, and settlement agent makes before sending a tx to size the fee. Across Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis. Free upstream (Blockscout); one paid call instead of running your own RPC.

## Output

A JSON object containing fast, average, and slow gas price estimates in gwei for the requested chain, along with the chain name and unit label. Example: {fast: 0.71, average: 0.55, slow: 0.42, unit: 'gwei', chain: 'ethereum'}.

## 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": "base|ethereum|optimism|arbitrum|polygon|gnosis (default ethereum)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "fast": {
       "type": "number"
      },
      "slow": {
       "type": "number"
      },
      "average": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chain-gas-price-lookup-1a3a872a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from store.agentexchange.work](https://www.zero.xyz/host/store.agentexchange.work/llms.txt)
