# Base Network Info

> Base Network Info is a paid API for AI agents from base-reads-api.rafliyaputra.deno.net, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Returns current Base blockchain network stats including latest block number, chain ID, block age, base fee, and gas price.

## Facts

- Endpoint: GET https://base-reads-api.rafliyaputra.deno.net/base/network?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-network-info-5a798812
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Whfm8aaJDo1A5iJWzx96B

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-info-5a798812
```

Example prompt: What is the current block number, gas price, and base fee on Base mainnet right now?

## When to prefer this

Use this endpoint when you need lightweight, pay-per-call, real-time Base network stats (block number, gas price, base fee) without setting up your own RPC connection. Ideal for agents that only occasionally need Base network data and want to avoid managing infrastructure. Less suitable for high-frequency polling or if you need full transaction/block details.

## Known failure modes

- Payment failure: x402 payment not accepted, returns 402 Payment Required
- Network unavailability: Base RPC node unreachable, returns 5xx error
- Stale data: block age may briefly spike during network congestion
- Rate limiting: excessive calls may be throttled by the host

## How this service works

Pay-per-call read API for Base over x402 v2. Deterministic data, no advice.

## Output

A JSON object containing: the latest block number, chain name ('base'), chain ID (8453), block age in seconds, base fee in gwei, and gas price in gwei — all reflecting the current state of the Base L2 network.

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {},
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "block": 36000000,
  "chain": "base",
  "chain_id": 8453,
  "block_age_s": 2,
  "base_fee_gwei": 0.005,
  "gas_price_gwei": 0.006
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-info-5a798812/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from base-reads-api.rafliyaputra.deno.net](https://www.zero.xyz/host/base-reads-api.rafliyaputra.deno.net/llms.txt)
