# 47620 Base Block Header API

> 47620 Base Block Header API is a paid API for AI agents from 47620.xyz, paid per call via x402, $0.005/call, status unknown (last checked 2026-10-02).

Returns the header and summary for a specific Base (Ethereum L2) block by block number or 'latest', including hash, timestamp, transaction count, gas used, and base fee.

## Facts

- Endpoint: GET https://47620.xyz/x/base/block/0?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/47620-base-block-header-api-d635476f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_BOJmWK-vY16hWQ3PIcW3A

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 47620-base-block-header-api-d635476f
```

Example prompt: Pull the block header for Base block number 21000000 — I need the hash, timestamp, transaction count, gas used, and base fee.

## When to prefer this

Use this endpoint when you need lightweight, structured block-level metadata for the Base (Coinbase L2) network — specifically hash, timestamp, tx count, gas used, and base fee — without needing full transaction data. It's ideal for monitoring Base chain activity, auditing gas conditions, or timestamping events by block. Prefer this over full node RPC calls when you want a simple, metered HTTP API that accepts x402 micropayments.

## Known failure modes

- Invalid or non-existent block number returns an error or empty response
- Block number beyond current chain head may return not-found error
- Network issues with Base RPC may cause timeouts
- Payment failure (x402) if USDC balance is insufficient — call returns 402 before data is served

## How this service works

Header + summary for a base block by number (or "latest"): hash, timestamp, tx count, gas used and base fee.

## Output

A JSON object containing the block header and summary for the requested Base chain block, including block hash, Unix timestamp, transaction count, gas used, and base fee in wei. Also includes an 'ok' boolean and endpoint identifier.

## 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",
     "required": [
      "number"
     ],
     "properties": {
      "number": {
       "type": "string",
       "description": "Header + summary for a base block by number (or \"latest\"): hash, timestamp, tx count, gas used and base fee."
      }
     },
     "additionalProperties": false
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "fields": {
       "type": "string",
       "description": "Optional comma-separated top-level response keys to keep (e.g. \"health,slot,solUsd\"). Omit for the full payload."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object",
     "required": [
      "ok",
      "endpoint"
     ],
     "properties": {
      "ok": {
       "type": "boolean"
      },
      "endpoint": {
       "type": "string"
      }
     },
     "additionalProperties": true
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

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