# ChainRead Block Info

> ChainRead Block Info is a paid API for AI agents from chainread.imac2014ville.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-10).

Fetch block metadata (hash, transaction count, age, base fee, gas utilization) for a specific or latest block on Base or Ethereum mainnet

## Facts

- Endpoint: GET https://chainread.imac2014ville.workers.dev/block?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-10
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainread-block-info-77b3be1c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_cb5-JiLmCNHNHoXlx0kA_

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 chainread-block-info-77b3be1c
```

Example prompt: What does the latest block on Base look like — how many transactions, what's the base fee in gwei, and how old is it?

## When to prefer this

Use this endpoint when you need lightweight, cheap ($0.001 USDC) on-demand block metadata for Base or Ethereum mainnet without managing your own RPC infrastructure or API keys. Ideal for agents that need to check current gas conditions, verify block finality, or monitor chain activity in real time.

## Known failure modes

- Invalid block number format returns an error
- Block number not yet mined returns not-found error
- Unsupported chain value (not 'base' or 'ethereum') returns validation error
- Payment failure via x402 if USDC balance is insufficient
- Network timeout if underlying RPC is slow

## How this service works

Cheap EVM read utilities for AI agents on Base and Ethereum mainnet: gas and fees, blocks, balances, ERC-20 metadata, contract inspection, transaction status, ENS/Basename resolution, bulk balances. No API key: pay USDC on Base per call via x402.

## Output

A JSON object with ok status, block hash, chain name, block number, transaction count, block age in seconds, base fee in gwei, and gas utilization percentage.

## 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": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "Chain to read (default base)"
      },
      "number": {
       "type": "string",
       "description": "Block number (decimal or 0x hex) or latest (default latest)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "hash": "0xabc…",
  "chain": "base",
  "number": 41000000,
  "txCount": 118,
  "ageSeconds": 1,
  "baseFeeGwei": 0.0053,
  "gasUtilizationPct": 22.4
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainread-block-info-77b3be1c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from chainread.imac2014ville.workers.dev](https://www.zero.xyz/host/chainread.imac2014ville.workers.dev/llms.txt)
