# x402-block

> x402-block is a paid API for AI agents from x402-extract-wg5z.onrender.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-11-04).

Returns the latest Base blockchain block number, hash, and timestamp in a single machine-readable GET call, priced at $0.002 USDC per request via x402 protocol.

## Facts

- Endpoint: GET https://x402-extract-wg5z.onrender.com/v1/block/latest?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-04
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402-block-b50e9ae3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_K7I3aecxF5iuXjYn3EMOt

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 x402-block-b50e9ae3
```

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

## When to prefer this

Use this endpoint when you need a lightweight, single-call lookup of the latest Base block metadata (number, hash, timestamp) without running a full node or managing RPC infrastructure. It is ideal for agents that need to anchor events to on-chain time, verify chain liveness, or poll for block progression cheaply at $0.002 per call.

## Known failure modes

- Network or service unavailability returning a 5xx error
- Payment failure or insufficient USDC balance causing a 402 response
- Temporary Base RPC node lag causing a slightly stale block to be returned
- Malformed or empty response if the upstream Base node is syncing

## How this service works

Latest Base block number, hash, and timestamp in one machine-readable call. $0.002 USDC per call on Base.

## Output

A JSON object containing the latest Base blockchain block number (integer), block hash (string), Unix timestamp (integer, in seconds), and chain identifier ('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": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "required": [
      "block_number",
      "block_hash",
      "timestamp",
      "chain"
     ],
     "properties": {
      "chain": {
       "enum": [
        "base"
       ],
       "type": "string"
      },
      "timestamp": {
       "type": "integer",
       "description": "Unix seconds"
      },
      "block_hash": {
       "type": "string"
      },
      "block_number": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

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