# Tollex Chain Get Block

> Tollex Chain Get Block is a paid API for AI agents from api.tollex.org, paid per call via x402, $0.0079/call, status unknown (last checked 2026-10-11).

Fetches blockchain block data for a specified block number or tag (latest, safe, finalized) from an EVM-compatible chain, paid via x402 micropayment in USDC.

## Facts

- Endpoint: POST https://api.tollex.org/tools/chain_get_block?utm_source=zero.xyz
- Price: $0.0079/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-11
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/tollex-chain-get-block-281e193e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CKvU7Zf3NFH6x22lv3YrD

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 tollex-chain-get-block-281e193e -d '<json body>'
```

Example prompt: What does the latest finalized block on the blockchain look like right now — can you pull the full block data for me?

## When to prefer this

Choose this endpoint when you need on-chain block data from an EVM-compatible network (Base or Robinhood Chain) and want automatic policy-checked, micropayment-metered access without managing your own RPC node or API keys. Ideal for AI agents operating under spend-policy governance that need ad-hoc blockchain reads billed per call in USDC.

## Known failure modes

- Invalid block parameter format (not matching pattern ^(latest|safe|finalized|[0-9]{1,15})$) returns a validation error
- Block number does not exist yet (future block) returns not-found error
- Payment failure or insufficient USDC balance causes request rejection before execution
- RPC node unavailability causes upstream timeout or 503 error
- Network congestion may delay response for very recent blocks

## How this service works

Tollex lets software agents buy APIs and tools under rules you set: it finds a capability that fits, checks your policy before anything is signed, pays with x402 in USDC on Base or USDG on Robinhood Chain, reconciles uncertain payments and returns a signed receipt.

## Output

Returns structured EVM block data including block number, hash, parent hash, timestamp, miner, gas used, gas limit, and list of transactions or transaction hashes for the requested block. Also returns a signed Tollex receipt confirming the x402 micropayment was processed.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "block": {
   "type": "string",
   "pattern": "^(latest|safe|finalized|[0-9]{1,15})$"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "tool": {
   "id": "chain_get_block",
   "version": "1.0.0",
   "provider": "tollex.robinhood-chain"
  },
  "result": {
   "hash": "0x7a3d7400b27830f4f91c2c16a082486d67c1befecaec2f53b33f1f35d5b62036",
   "number": "83335219",
   "gasUsed": "412876",
   "timestamp": "2026-10-08T13:04:26.000Z",
   "parentHash": "0x7a3d7400b27830f4f91c2c16a082486d67c1befecaec2f53b33f1f35d5b62036",
   "transactions": 4,
   "baseFeePerGas": "10000000",
   "l1BlockNumber": "23541870"
  },
  "evidence": [],
  "untrustedOutput": false
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/tollex-chain-get-block-281e193e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.tollex.org](https://www.zero.xyz/host/api.tollex.org/llms.txt)
