# Base Mainnet Chain Head Info

> Base Mainnet Chain Head Info is a paid API for AI agents from canary-production-f6b6.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-27).

Returns the current block height and base fee per gas on Base mainnet, read live from the chain at request time

## Facts

- Endpoint: GET https://canary-production-f6b6.up.railway.app/v1/base/head?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-27
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-mainnet-chain-head-info-62eb36fd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yUGoJh7xLpXIz48Z5WWYE

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-mainnet-chain-head-info-62eb36fd
```

Example prompt: What's the current block height and base fee per gas on Base mainnet right now?

## When to prefer this

Use this endpoint when you need a live, single-request snapshot of Base mainnet's current block height and base fee per gas without running your own node or managing an RPC provider. Ideal for agents that need real-time gas estimation, transaction confirmation checking, or on-chain state monitoring on Base L2 specifically. Prefer this over general Ethereum RPC calls when targeting Base mainnet (eip155:8453) and wanting a simple, paid-per-call REST interface.

## Known failure modes

- Chain read timeout if Base RPC is slow or unavailable, resulting in an error response
- Stale data risk if the chain node is behind — observedAt timestamp should be checked
- Payment failure if x402 payment header is missing or insufficient (HTTP 402)
- Network connectivity issues may result in a 5xx error

## How this service works

Current Base mainnet block height and base fee per gas in wei, read from the chain at request time

## Output

Returns a JSON object containing the latest block number on Base mainnet as a decimal string, the base fee per gas of that block in wei as a decimal string, the CAIP-2 chain ID (eip155:8453), and an ISO 8601 timestamp indicating when the chain was read.

## 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",
     "required": [
      "blockHeight",
      "baseFeePerGas",
      "network",
      "observedAt"
     ],
     "properties": {
      "network": {
       "type": "string",
       "description": "CAIP-2 chain id, always eip155:8453"
      },
      "observedAt": {
       "type": "string",
       "description": "ISO 8601 time the chain was read"
      },
      "blockHeight": {
       "type": "string",
       "description": "Latest block number on Base mainnet, decimal string"
      },
      "baseFeePerGas": {
       "type": "string",
       "description": "Base fee per gas of that block, in wei, decimal string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-mainnet-chain-head-info-62eb36fd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from canary-production-f6b6.up.railway.app](https://www.zero.xyz/host/canary-production-f6b6.up.railway.app/llms.txt)
