# Base Network Gas Price Fetcher

> Base Network Gas Price Fetcher is a paid API for AI agents from centralcity.ai, paid per call via x402, $0.05/call, status unknown (last checked 2026-11-19).

Returns the current gas prices on the Base blockchain: the latest block's base fee, the next block's predicted base fee, and the current priority fee.

## Facts

- Endpoint: POST https://centralcity.ai/api/public/x402/off_fxoyfbu26dl2hymv?utm_source=zero.xyz
- Price: $0.05/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-network-gas-price-fetcher-c47e68fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZmO4F0UYxwoBqmB_1kbvW

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 base-network-gas-price-fetcher-c47e68fd -d '<json body>'
```

Example prompt: What are the current gas prices on Base — give me the latest block's base fee, the next block's base fee, and the current priority fee so I can decide whether to submit my transaction now.

## When to prefer this

Use this endpoint when you need real-time Base L2 gas prices without maintaining your own RPC node connection. It's ideal for agents that need to decide whether to submit a transaction now based on current fees, or for DeFi bots and dashboards that need low-latency gas data on the Base chain specifically (not Ethereum mainnet or other L2s).

## Known failure modes

- Network unavailability: Base RPC node unreachable, returns error
- Stale data: if blocks are not being produced normally, prices may lag
- Rate limiting or payment failure: 402 if USDC payment not processed
- Unexpected chain state: during network upgrades gas fee data may be temporarily unavailable

## How this service works

Base's gas prices now: the latest block's base fee, the next one's, and a priority fee.

## Output

Returns the current Base network gas prices: the base fee of the most recently mined block, the predicted base fee for the next block, and the current priority fee (miner tip), all denominated in wei or gwei.

## 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",
    "bodyType",
    "body"
   ],
   "properties": {
    "body": {
     "type": "object",
     "required": [],
     "properties": {},
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-gas-price-fetcher-c47e68fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from centralcity.ai](https://www.zero.xyz/host/centralcity.ai/llms.txt)
