# Block Height - Base & Ethereum

> Block Height - Base & Ethereum is a paid API for AI agents from scanpay-edge.alextaghiashvili.workers.dev, paid per call via x402, $0.001/call, status unknown (last checked 2026-11-01).

Returns the latest block number, block hash, and timestamp for the Base or Ethereum blockchain via public JSON-RPC.

## Facts

- Endpoint: GET https://scanpay-edge.alextaghiashvili.workers.dev/api/v1/block-height?utm_source=zero.xyz
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-01
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/block-height-base-ethereum-08852821
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_IjXtY_9A4T2TjnBHu-MHx

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 block-height-base-ethereum-08852821
```

Example prompt: What's the current block number and block hash on Base right now?

## When to prefer this

Choose this endpoint when you need a quick, pay-per-call lookup of the current block height, hash, or timestamp on Base or Ethereum without managing your own RPC node or API key. It is ideal for lightweight agents that only occasionally need on-chain block data and want to avoid provisioning infrastructure. Not suited for high-frequency polling at scale due to per-call cost.

## Known failure modes

- Invalid or unsupported network parameter returns an error
- Upstream JSON-RPC node unavailability causes timeout or 503
- Payment failure (x402) blocks access if USDC balance is insufficient
- No query parameters provided may default to a specific network or return an error if network selection is required

## How this service works

Pay-per-call x402 APIs for AI agents: OpenAI-compatible LLM chat, perp funding and arbitrage spreads, crypto prices, gas, FX, Solana SPL mint audit, token price by contract, x402 delivery-receipt verification, web search, clean page extraction, batch tools and deterministic code-security scanning. USDC on Base or Solana, no signup, no API key, from $0.0001 a call.

## Output

Returns a JSON object with the network name (e.g. 'base'), a product identifier, the EIP-155 chain ID (e.g. 'eip155:8453'), the price in USD, the current block number as an integer, the block hash as a hex string, and the block timestamp as a Unix epoch integer.

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

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "network": "base",
  "product": "scanpay.block_height",
  "chain_id": "eip155:8453",
  "price_usd": 0.001,
  "timestamp": 1793462400,
  "block_hash": "0x32df9c2c6e6e87f7b2a95f9c5d18d4d8c6b1a2e3f4a5b6c7d8e9f0a1b2c3d4e5",
  "block_number": 53336036
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/block-height-base-ethereum-08852821/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from scanpay-edge.alextaghiashvili.workers.dev](https://www.zero.xyz/host/scanpay-edge.alextaghiashvili.workers.dev/llms.txt)
