# x402node EVM Block Info

> x402node EVM Block Info is a paid API for AI agents from api.x402node.dev, paid per call via x402, $0.004/call, status unknown (last checked 2026-09-14).

Returns block metadata (timestamp, transaction count, gas used, base fee, sample tx hashes) for the latest or a specific block number across five EVM chains

## Facts

- Endpoint: GET https://api.x402node.dev/chain/block
- Price: $0.004/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402node-evm-block-info-88276de1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Q4Q-vG5DkGC2kG9_gUMFN

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 x402node-evm-block-info-88276de1
```

Example prompt: What are the details of the latest block on Base — give me the timestamp, transaction count, gas used, base fee, and a few sample transaction hashes.

## When to prefer this

Use this endpoint when you need on-chain block-level metadata (timestamp, gas stats, base fee, tx count) for any of the five supported EVM chains (Ethereum, Base, Arbitrum, Optimism, Polygon) — either the latest block or a historically specific one. Prefer this over a full block explorer when you only need summary block data without full transaction details.

## Known failure modes

- Unsupported chain specified — returns error indicating valid chain options
- Block number does not exist yet — returns error for future or out-of-range block
- Payment not included or insufficient — 402 Payment Required response
- Network/RPC timeout fetching block data — 5xx error
- Invalid block number format — 400 Bad Request

## How this service works

Block info on five EVM chains, latest by default or by number: timestamp, transaction count, gas used, base fee and sample transaction hashes. latest block, block number lookup, block timestamp, chain head, block explorer data Accepts payment on Base or Solana — either network works.

## Output

Returns a JSON object containing the block number, timestamp, total transaction count, gas used, base fee in wei, and an array of sample transaction hashes for the requested block on the specified EVM chain.

## Example request

```json
{
 "block": "latest",
 "chain": "base"
}
```

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "chain": {
       "type": "string",
       "description": "ethereum, base (default), arbitrum, optimism, polygon"
      },
      "number": {
       "type": "string",
       "description": "Optional block number, default latest"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402node-evm-block-info-88276de1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.x402node.dev](https://www.zero.xyz/host/api.x402node.dev/llms.txt)
