# Blockchain Block Number Lookup

> Blockchain Block Number Lookup is a paid API for AI agents from x402-gateway-production-1f21.up.railway.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-10-11).

Returns the current block number for a specified blockchain network (Base or Ethereum) via a machine-payable x402 API.

## Facts

- Endpoint: POST https://x402-gateway-production-1f21.up.railway.app/chain/block-number?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockchain-block-number-lookup-ed10f7a1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ODI4IN5s-uE9_ot0IMLqD

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 blockchain-block-number-lookup-ed10f7a1 -d '<json body>'
```

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

## When to prefer this

Choose this endpoint when you need a quick, real-time block number lookup for Base or Ethereum without running your own node, and you are operating in a machine-payable (x402) environment. Ideal for agents that need on-chain timing references, confirmation checks, or synchronization points at low cost ($0.001 USDC per call).

## Known failure modes

- Invalid network value (not 'base' or 'ethereum') returns a validation error
- Payment failure via x402 protocol results in 402 Payment Required response
- Network connectivity issues to the blockchain node may return a timeout or error
- Missing required 'network' field in request body may cause a 400 error

## How this service works

Machine-payable x402 utilities for hashing, Base64, UUID generation, unit and timezone conversion, realtime crypto market data, webpage/document extraction, URL-to-Markdown, metadata, RAG ingestion and deterministic website change detection.

## Output

Returns a JSON object containing the current block number for the requested blockchain network (Base or Ethereum), along with a status field indicating readiness. The block number reflects the most recently mined block at the time of the request.

## 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",
     "properties": {
      "network": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "default": "base"
      }
     },
     "additionalProperties": false
    },
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "POST"
     ],
     "type": "string"
    },
    "bodyType": {
     "enum": [
      "json",
      "form-data",
      "text"
     ],
     "type": "string"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "status": "ready"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockchain-block-number-lookup-ed10f7a1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-gateway-production-1f21.up.railway.app](https://www.zero.xyz/host/x402-gateway-production-1f21.up.railway.app/llms.txt)
