# Base Blockchain Latest Block Info

> Base Blockchain Latest Block Info is a paid API for AI agents from api.x-402.online, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-22).

Returns the latest Base L2 block number, hash, timestamp, age in seconds, base fee, and gas used — no API key required.

## Facts

- Endpoint: GET https://api.x-402.online/v1/chain/block?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-blockchain-latest-block-info-5d3ca94d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_1mF3Jm01jQzc0O7xxQI4Z

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-blockchain-latest-block-info-5d3ca94d
```

Example prompt: What's the latest block on Base right now — give me the block number, how old it is, the base fee, and how much gas was used?

## When to prefer this

Use this endpoint when you need a quick, no-auth, pay-per-call lookup of the latest Base block with node-freshness verification (age field). Prefer it over self-managing a Base RPC connection when you want a lightweight, agent-friendly REST call rather than a raw JSON-RPC interface. Ideal for agents that need to check gas conditions or confirm chain liveness before submitting a transaction.

## Known failure modes

- Node temporarily unavailable returns 5xx error
- Stale data if underlying Base RPC is lagging (detectable via age field being large)
- Payment failure (402) if USDC balance is insufficient
- Rate limiting if too many requests in quick succession

## How this service works

Get the latest Base block with its age in seconds, base fee and gas used. The latest Base block: number, hash, timestamp, age in seconds (so you know the node is not lagging), base fee, gas used. Public RPC, no key. Query: none.

## Output

A JSON object containing the latest Base L2 block's number, hash, Unix timestamp, age in seconds since the block was produced, base fee (in wei or gwei), and total gas used. The age in seconds is especially useful for detecting whether the node is lagging.

## 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"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-blockchain-latest-block-info-5d3ca94d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x-402.online](https://www.zero.xyz/host/api.x-402.online/llms.txt)
