# EVM Block

> EVM Block is a paid API for AI agents from bess-x402.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-29).

Fetches an EVM block by number or tag (latest, finalized, safe), returning hash, parent, timestamp, miner, gas used/limit, base fee, size, and transaction hashes.

## Facts

- Endpoint: GET https://bess-x402.onrender.com/v1/evm/block?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-29
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-block-2cd94560
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_l8Ul4v3wngoBfkbDfLX4r

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 evm-block-2cd94560
```

Example prompt: What are the details of the latest finalized block on Ethereum — give me the hash, miner, gas used, base fee, and transaction hashes.

## When to prefer this

Use this endpoint when you need comprehensive block-level metadata — hash, miner, gas stats, base fee, size, and transaction hashes — for any of the five supported EVM chains (Ethereum, Base, Arbitrum, Optimism, Polygon) by block number, hex, or tag (latest/safe/finalized). Prefer it over raw RPC calls when you want a clean, pay-per-call REST interface without managing your own node or RPC credentials.

## Known failure modes

- Invalid block number or tag returns an error response
- Unsupported chain name causes a bad request error
- Block number too far in the future (pending) may not resolve
- Network or RPC timeout for the requested chain
- Hex block number malformed causes parse error

## How this service works

An EVM block by number or tag (latest, finalized, safe): hash, parent, time, miner, gas used and limit, base fee, size and its transaction hashes.

## Output

Returns a JSON object with the block's hash, parent hash, timestamp, miner address, gas used, gas limit, base fee per gas, block size in bytes, and an array of transaction hashes included in the block.

## 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",
     "required": [],
     "properties": {
      "block": {
       "type": "string",
       "description": "Block number, 0x hex or latest/safe/finalized"
      },
      "chain": {
       "type": "string",
       "description": "ethereum, base, arbitrum, optimism or polygon"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-block-2cd94560/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from bess-x402.onrender.com](https://www.zero.xyz/host/bess-x402.onrender.com/llms.txt)
