# Xerxes eth_getBlockByNumber – Ethereum Block Lookup

> Xerxes eth_getBlockByNumber – Ethereum Block Lookup is a paid API for AI agents from ari001.tailb4ac3a.ts.net, paid per call via x402, $0.003/call, status unknown (last checked 2026-10-23).

Returns full details of an Ethereum mainnet block by block number (or 'latest'), including hash, timestamp, transactions, and gas data.

## Facts

- Endpoint: GET https://ari001.tailb4ac3a.ts.net/v1/ventures/ethereum_rpc_api/eth_getblockbynumber?utm_source=zero.xyz
- Price: $0.003/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-23
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/xerxes-eth-getblockbynumber-ethereum-block-lookup-1bf4f530
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_M1b53L7dVacfwbmpD59Xc

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 xerxes-eth-getblockbynumber-ethereum-block-lookup-1bf4f530
```

Example prompt: What were the details of Ethereum block 19000000 — hash, timestamp, gas used, and how many transactions were in it?

## When to prefer this

Use this endpoint when you need comprehensive block-level data from Ethereum mainnet — including hash, timestamp, gas, and full transaction list — for a specific block number or the latest block. Prefer this over balance or contract endpoints when the query is about block metadata rather than account or token state.

## Known failure modes

- Block number out of range or not yet mined returns an error or null result
- Malformed block number (non-numeric, exceeds 12 digits) rejected by input schema validation
- 'latest' keyword misspelled returns a validation error
- Node unavailability or timeout returns ok: false with an error message
- Very high block numbers (future blocks) return null result

## How this service works

Returns information about a block by block number. Includes block hash, timestamp, transactions, gas used, etc. Query: block (a block number, or 'latest').

## Output

Returns the Ethereum node's JSON-RPC result object for the requested block, including block hash, parent hash, miner address, timestamp, gas limit, gas used, transaction array, and other standard block fields. Also includes metadata fields: ok (boolean), service name, and chain identifier.

## 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"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "block": {
       "type": "string",
       "pattern": "^(latest|[0-9]{1,12})$",
       "description": "a block number, or 'latest'"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "service"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "chain": {
       "type": "string"
      },
      "error": {
       "type": "string",
       "description": "present when ok is false"
      },
      "method": {
       "type": "string"
      },
      "result": {
       "type": "object",
       "description": "the node's JSON-RPC object, as returned"
      },
      "service": {
       "type": "string"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/xerxes-eth-getblockbynumber-ethereum-block-lookup-1bf4f530/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ari001.tailb4ac3a.ts.net](https://www.zero.xyz/host/ari001.tailb4ac3a.ts.net/llms.txt)
