# Xerxes Ethereum eth_getBlockByNumber

> Xerxes Ethereum eth_getBlockByNumber 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-03).

Fetches Ethereum block metadata (hash, number, timestamp, gas used, gas limit, miner, transactions) by block number or 'latest'

## Facts

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

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-ethereum-eth-getblockbynumber-d4654c19
```

Example prompt: What are the details of Ethereum block 21000000 — hash, timestamp, gas used, miner, and list of transactions?

## When to prefer this

Use this endpoint when you need to retrieve Ethereum block-level metadata — including hash, miner, gas metrics, timestamp, and transaction list — by a specific block number or the chain head. Prefer it over transaction-level endpoints when the query is block-scoped rather than address- or transaction-scoped. It is ideal for on-chain event verification, block timing audits, and pipeline triggers keyed to block production.

## Known failure modes

- Invalid block number format returns an error with ok: false
- Block number does not exist yet (future block) returns an error
- Network timeout from the Ethereum node results in a service error
- Missing 'block' query param defaults to 'latest' but malformed patterns are rejected by schema validation

## How this service works

Returns a block by its number (or 'latest') from Ethereum: hash, number, timestamp, gas used, gas limit, miner, transactions list. Query: block (a block number, or 'latest').

## Output

Returns a JSON object with ok (boolean), chain, method, service, and a result object containing the Ethereum block's hash, number, timestamp, gas used, gas limit, miner address, and array of transaction hashes. If ok is false, an error field is present with a description.

## 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-ethereum-eth-getblockbynumber-d4654c19/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)
