# ChainRead Block Number Lookup

> ChainRead Block Number Lookup is a paid API for AI agents from api.firstmention.uk, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-22).

Returns the current block number (and hex equivalent) for a specified EVM chain (Base or Ethereum)

## Facts

- Endpoint: GET https://api.firstmention.uk/s/x402check/block?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-22
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/chainread-block-number-lookup-bc7f49d1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_warLhhRgOqhkP9fNvPjwM

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-number-lookup-bc7f49d1
```

Example prompt: What is the current block number on the Base blockchain right now?

## When to prefer this

Use this endpoint when you need a quick, pay-per-call lookup of the current block number on Base or Ethereum without maintaining your own RPC node. It is ideal for agents that need occasional block height checks without a full node subscription, especially when paying via USDC on Base using x402.

## Known failure modes

- Invalid or unsupported chain value returns an error response
- Network or RPC node unavailability may cause a timeout or 5xx error
- Missing or malformed query parameters may return a 400 bad request
- Payment failure (insufficient USDC balance or x402 issue) results in 402 Payment Required

## How this service works

Pay-per-call HTTP APIs, paid with x402 in USDC on Base (eip155:8453): agentkit, api-change-check, basedue, basewatch, chainread, check-sanctions, chgwatch, company-facts, composite, edgar, feednews, pageaudit, solcheck, token-dd, txpreflight, walletcheck, webmd, webread, websearch, x402index. Each operation describes its service.

## Output

Returns a JSON object with the chain name (e.g. 'base' or 'eth'), the current block number as an integer (e.g. 28741233), and the block number in hex format (e.g. '0x1b6a0f1').

## 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"
    },
    "headers": {
     "type": "object",
     "additionalProperties": {
      "type": "string"
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "url": {
       "type": "string",
       "description": "seller URL for /check"
      },
      "hash": {
       "type": "string",
       "description": "0x transaction hash for /tx"
      },
      "chain": {
       "enum": [
        "base",
        "eth"
       ],
       "type": "string",
       "description": "which chain to read, default base"
      },
      "token": {
       "type": "string",
       "description": "ERC20 contract 0x address for /erc20"
      },
      "address": {
       "type": "string",
       "description": "0x eth address for /balance or /nonce"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string"
      },
      "block_hex": {
       "type": "string"
      },
      "block_number": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "block_hex": "0x1b6a0f1",
  "block_number": 28741233
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/chainread-block-number-lookup-bc7f49d1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.firstmention.uk](https://www.zero.xyz/host/api.firstmention.uk/llms.txt)
