# DESK LEAD x402 - Block Height Lookup

> DESK LEAD x402 - Block Height Lookup is a paid API for AI agents from desk-x402.desk-x402-gh.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Returns the current block height for BSC, Base, or both blockchain networks via a micropayment-gated API using the x402 protocol.

## Facts

- Endpoint: GET https://desk-x402.desk-x402-gh.workers.dev/v1/block
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/desk-lead-x402-block-height-lookup-cd679872
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_rjCSbUJDGWPQjF84YGVqD

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 desk-lead-x402-block-height-lookup-cd679872
```

Example prompt: What's the current block height on the Base network right now? Use the x402 micropayment endpoint and query for Base only.

## When to prefer this

Use this endpoint when you need a lightweight, real-time block height lookup for BSC or Base (or both) and are operating within an x402 micropayment workflow. Ideal for agents that already handle x402 payment headers and need cheap ($0.01 USDC), on-demand blockchain state checks without requiring a full RPC node connection or a heavier blockchain data provider.

## Known failure modes

- Missing or invalid x402 payment header returns HTTP 402 Payment Required
- Invalid network enum value returns a validation error
- Payment on unsupported network (non-Base for v2) may be rejected
- Cloudflare Worker downtime returns 5xx errors
- Querying both networks may return partial data if one chain RPC is degraded

## How this service works

Micropay research APIs (x402 v2 + bazaar). Free catalog at /.well-known/x402.json. Primary v2 accepts: Base eip155:8453 only. Legacy X-PAYMENT-TX still supports bsc|base via acceptsV1. Headers: X-PAYMENT-TX, X-PAYMENT-NETWORK, PAYMENT-SIGNATURE. No financial advice.

## Output

Returns a JSON object with an 'ok' boolean indicating success, a 'height' integer representing the current block number, and a 'product' string identifying the endpoint ('block'). Optionally scoped to BSC, Base, or both networks depending on the 'network' query parameter.

## 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": {
      "network": {
       "enum": [
        "bsc",
        "base",
        "both"
       ],
       "type": "string"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "height": 1,
  "product": "block"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/desk-lead-x402-block-height-lookup-cd679872/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from desk-x402.desk-x402-gh.workers.dev](https://www.zero.xyz/host/desk-x402.desk-x402-gh.workers.dev/llms.txt)
