# x402-toolbox Block by Number

> x402-toolbox Block by Number is a paid API for AI agents from x402-toolbox.shablony-pro.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-29).

Retrieves a blockchain block's details by its block number from an EVM-compatible chain, paid per-call via x402/USDC on Base.

## Facts

- Endpoint: GET https://x402-toolbox.shablony-pro.workers.dev/chain/block-by-number?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-toolbox-block-by-number-450559e0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_yQtt8-NHI_iTa3JzthDX-

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 x402-toolbox-block-by-number-450559e0
```

Example prompt: Can you fetch the block details for block number 19500000 on the Base chain?

## When to prefer this

Choose this endpoint when you need deterministic, pay-per-call blockchain block lookups by number with no API key or signup required. Ideal for AI agents operating autonomously with a USDC wallet on Base, especially when fetching specific historical or recent blocks from EVM-compatible chains without maintaining a subscription.

## Known failure modes

- Block number not found or not yet mined — returns error or empty result
- Invalid or missing block number parameter — returns validation error
- Chain not supported or schema parameter invalid — returns bad request
- x402 payment failure — returns HTTP 402 if payment is missing or insufficient
- Network or upstream RPC timeout — returns 5xx error

## How this service works

309 deterministic pay-per-call tools for AI agents over x402 (USDC, Base). No signup, no API key: the payment is the identity.

## Output

Returns a JSON object with block details including block hash, parent hash, timestamp, miner/validator, transaction list, gas used, and other EVM block metadata for the requested block number.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "schema": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "paid": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402-toolbox-block-by-number-450559e0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-toolbox.shablony-pro.workers.dev](https://www.zero.xyz/host/x402-toolbox.shablony-pro.workers.dev/llms.txt)
