# EVM Blockchain Latest Block Info

> EVM Blockchain Latest Block Info is a paid API for AI agents from x402-seller-0ay3.onrender.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-14).

Returns the latest block number, timestamp, and hash for a specified EVM blockchain (Base or Ethereum) by querying a live public RPC endpoint.

## Facts

- Endpoint: GET https://x402-seller-0ay3.onrender.com/api/chain/block
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/evm-blockchain-latest-block-info-8cfb86d6
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_H4gXnU7wGXLsUkyu6C956

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-blockchain-latest-block-info-8cfb86d6
```

Example prompt: What's the latest block number, hash, and timestamp on the Base blockchain right now?

## When to prefer this

Choose this endpoint when you need a quick, no-API-key lookup of the latest block on Base or Ethereum without setting up your own RPC connection or using a centralized aggregator. It is ideal for agents that need to timestamp events, verify chain liveness, or anchor on-chain logic to the current block height without infrastructure overhead.

## Known failure modes

- Unsupported chain value returns an error — only 'base' and 'ethereum' are accepted
- Public RPC node downtime may cause fetch failures or stale data
- Network latency on the RPC provider side can cause occasional timeouts
- Missing or invalid 'chain' query parameter results in a validation error

## How this service works

Latest known block (number, timestamp, hash) of an EVM blockchain, read live via a public RPC endpoint (viem) — no API key, no aggregator. Parameter: ?chain=<base|ethereum>.

## Output

A JSON object containing the chain name (e.g. 'base'), the latest block number as an integer, the block hash as a hex string, the block timestamp as an ISO 8601 datetime, and a fetched_at datetime indicating when the data was retrieved.

## 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",
     "required": [
      "chain"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base",
        "ethereum"
       ],
       "type": "string",
       "description": "EVM chain to query."
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "chain": "base",
  "timestamp": "2026-09-01T12:00:00.000Z",
  "block_hash": "0xabc...",
  "fetched_at": "2026-09-01T12:00:05.000Z",
  "block_number": 21500000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/evm-blockchain-latest-block-info-8cfb86d6/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-seller-0ay3.onrender.com](https://www.zero.xyz/host/x402-seller-0ay3.onrender.com/llms.txt)
