# Riley Craig x402 Agent Store — Chain Gas Price Lookup

> Riley Craig x402 Agent Store — Chain Gas Price Lookup is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-13).

Returns current gas prices (fast, average, slow) in gwei for a specified EVM blockchain network, payable per-call in USDC via x402.

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/chain/gas
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-chain-gas-price-lookup-7731077b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6fmoHMA3dR2UDiboGqJMA

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 riley-craig-x402-agent-store-chain-gas-price-lookup-7731077b
```

Example prompt: What are the current gas prices on Base — give me fast, average, and slow gwei estimates so I can decide when to submit my transaction.

## When to prefer this

Use this endpoint when an AI agent needs real-time EVM gas price data across multiple chains (Base, Ethereum, Optimism, Arbitrum, Polygon, Gnosis) without managing API keys or subscriptions. Ideal for autonomous agents that pay per-call in USDC via x402 and need lightweight, no-signup gas oracle access before executing on-chain transactions.

## Known failure modes

- Unsupported chain name returns error or default fallback to ethereum
- Network congestion or upstream RPC unavailability may cause stale or missing data
- Missing 'chain' query param defaults to ethereum — agent must be aware of this default
- Payment failure via x402 (insufficient USDC balance) blocks the call entirely

## 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 with numeric gas price values for fast, average, and slow transaction speeds in gwei, plus the chain name and unit label. Example: {fast: 0.71, average: 0.55, slow: 0.42, unit: 'gwei', 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"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "fast": 0.71,
  "slow": 0.42,
  "unit": "gwei",
  "chain": "ethereum",
  "average": 0.55
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-chain-gas-price-lookup-7731077b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
