# base-network-info

> base-network-info is a paid API for AI agents from x402.agentindex.world, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-30).

Returns Base mainnet network info in a single call: chain ID, current block height, and gas price in both wei and gwei.

## Facts

- Endpoint: GET https://x402.agentindex.world/base/network-info?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-30
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-network-info-5ee0a4c5
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_eIAKUw_-c1wJK5qfqLAm-

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-5ee0a4c5
```

Example prompt: What's the current gas price on Base mainnet right now, and what block are we at?

## When to prefer this

Choose this endpoint when you need a quick, single-call snapshot of Base mainnet state — chain ID, block height, and gas price — without setting up your own RPC node or paying for a dedicated provider subscription. Ideal for agents that need to make gas estimates, verify network identity, or decide whether conditions are right to submit a transaction, at a low per-call cost of $0.001 USDC.

## Known failure modes

- RPC node unavailable — upstream Base node may be unreachable, returning a 5xx error
- Stale data — if the underlying node is syncing, block_number may lag behind tip
- Payment failure — x402 payment of $0.001 USDC not processed correctly, returns 402
- Rate limiting — too many requests in a short window may result in 429 or payment rejection

## How this service works

Base mainnet network info in one call: chain ID, block height, and current gas price (wei and gwei).

## Output

A JSON object with four fields: chain_id (integer, Base mainnet chain ID = 8453), block_number (integer, current block height), gas_price_wei (integer, current gas price in wei), and gas_price_gwei (float, current gas price in gwei). All values reflect the live state of the Base mainnet at the time of the call.

## 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",
     "title": "NetworkInfoInput",
     "properties": {}
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST",
      "PUT",
      "PATCH"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "title": "NetworkInfoOutput",
     "required": [
      "chain_id",
      "block_number",
      "gas_price_wei",
      "gas_price_gwei"
     ],
     "properties": {
      "chain_id": {
       "type": "integer",
       "title": "Chain Id"
      },
      "block_number": {
       "type": "integer",
       "title": "Block Number"
      },
      "gas_price_wei": {
       "type": "integer",
       "title": "Gas Price Wei"
      },
      "gas_price_gwei": {
       "type": "number",
       "title": "Gas Price Gwei"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-network-info-5ee0a4c5/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.agentindex.world](https://www.zero.xyz/host/x402.agentindex.world/llms.txt)
