# Base Block

> Base Block is a paid API for AI agents from 402.com.tr, paid per call via x402, $0.002/call, status unknown (last checked 2026-09-15).

Fetches raw block metadata from the Base blockchain by block number, hash, or tag (latest/finalized/safe/earliest)

## Facts

- Endpoint: GET https://402.com.tr/api/x402/base-block
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/base-block-bad70ed1
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4hyiFwK6YPLiHM74rs1c2

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 base-block-bad70ed1
```

Example prompt: Pull the raw block data for Base block number 18500000 — I need the hash, parent hash, timestamp, transaction count, gas used vs gas limit, and base fee in gwei.

## When to prefer this

Use this endpoint when you need raw, uninterpreted block-level metadata from the Base chain — height, hash, parent, timestamp, gas usage, transaction count, and base fee — for a specific block number, hash, or canonical tag. Prefer it over explorer scraping or full node RPC calls when you want a lightweight, pay-per-call REST interface to Base block data without managing your own infrastructure.

## Known failure modes

- Block not yet mined — returns found:false with reason instead of an error
- Invalid block hash format — malformed 0x… string may return an error
- Block tag not recognized — unsupported tag values will fail validation
- Network latency or RPC unavailability — Base node timeout causing delayed or failed response

## How this service works

🆕 One block on Base — height, hash, parent, timestamp and age in seconds, transaction count, gas used against the limit, and the base fee in gwei. Takes a block number, a 0x… block hash, or latest / finalized / safe / earliest. A block that isn't mined yet answers found:false with the reason rather than an error. Raw chain data, no interpretation.

## Output

Returns a JSON object with block height, block hash, parent hash, Unix timestamp, age in seconds, transaction count, gas used, gas limit, and base fee in gwei. If the block is not yet mined, returns found:false with a reason string rather than an error.

## 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"
    },
    "pathParams": {
     "type": "object"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "block": {
       "type": "string",
       "description": "Block number, hash, or tag (default latest)"
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/base-block-bad70ed1/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from 402.com.tr](https://www.zero.xyz/host/402.com.tr/llms.txt)
