# Grokzilla Block Number Lookup

> Grokzilla Block Number Lookup is a paid API for AI agents from grokzilla.shop, paid per call via x402, $0.001/call, status unknown (last checked 2026-12-03).

Returns the latest block number (and optionally block timestamp) for Base and/or Ethereum mainnet, cached approximately every 2 seconds.

## Facts

- Endpoint: POST https://grokzilla.shop/api/skills/block-number?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-12-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/grokzilla-block-number-lookup-2dcd6bd3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qHtLp-ajpBisrgCt0i6tj

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 grokzilla-block-number-lookup-2dcd6bd3 -d '<json body>'
```

Example prompt: What's the current block number on Base mainnet right now, and can you include the block timestamp?

## When to prefer this

Use this endpoint when you need the current block number for Base and/or Ethereum mainnet with low latency (~2s cache), especially if you also want the block timestamp in a single call. Prefer over raw RPC calls when you want a simple JSON API with micropayment access and no node infrastructure to manage.

## Known failure modes

- Invalid chain name in 'chains' array returns a validation error
- Network or RPC node unavailability may result in stale or failed data
- Missing required 'chains' field returns a schema validation error
- Payment failure (x402) prevents call from being processed

## How this service works

Latest eth_blockNumber for Base and/or Ethereum, optional block timestamp. Cached ~2s.

## Output

Returns a JSON object with ok status, the current block number in decimal and hex, chain ID, optional ISO-8601 block timestamp, confidence score, data freshness timestamp, and a human-readable summary string (e.g. 'base#22000000'). Also includes suggested next skill calls.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "chains": {
   "type": "array",
   "items": {
    "enum": [
     "base",
     "ethereum"
    ],
    "type": "string"
   },
   "default": [
    "base"
   ],
   "maxItems": 2,
   "minItems": 1,
   "uniqueItems": true
  },
  "request_id": {
   "type": "string",
   "pattern": "^[A-Za-z0-9._:-]+$",
   "maxLength": 64,
   "minLength": 1,
   "description": "Optional idempotency key. Echoed back; a credit-pack redemption with the same request_id and body is charged once."
  },
  "include_timestamp": {
   "type": "boolean",
   "default": false,
   "description": "When true, also fetch eth_getBlockByNumber for the tip timestamp"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "data": {
   "as_of": "2026-10-26T14:00:00Z",
   "results": [
    {
     "chain": "base",
     "chain_id": 8453,
     "block_hex": "0x14fb180",
     "timestamp": null,
     "block_number": 22000000,
     "timestamp_iso": null
    }
   ]
  },
  "next": [
   "tx_status",
   "gas_price"
  ],
  "skill": "block_number",
  "charged": true,
  "service": "block_number",
  "sources": [
   {
    "url": "chain:8453",
    "name": "base eth_blockNumber",
    "fetched_at": "2026-10-26T14:00:00Z"
   }
  ],
  "summary": "base#22000000",
  "version": "1.0.0",
  "warnings": [],
  "confidence": 0.95,
  "data_as_of": "2026-10-26T14:00:00Z",
  "generated_at": "2026-10-26T14:00:00Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/grokzilla-block-number-lookup-2dcd6bd3/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from grokzilla.shop](https://www.zero.xyz/host/grokzilla.shop/llms.txt)
