# Blockpost — block

> Blockpost — block is a paid API for AI agents from oraclepost.higgsfield.app, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-18).

Fetches live Base blockchain block data (timestamp, transaction count, base fee, gas used/limit, miner) for a specific block number or the latest block, directly from the chain with no cache.

## Facts

- Endpoint: GET https://oraclepost.higgsfield.app/api/block
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-18
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/blockpost-block-a7590838
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Z2S1ZJf1aA0DwhhkBx01l

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 blockpost-block-a7590838
```

Example prompt: What are the details for Base block 25000000 — timestamp, transaction count, base fee, gas used and limit, and who mined it?

## When to prefer this

Use this endpoint when you need authoritative, real-time block-level data from the Base chain without relying on any third-party indexer or cached data. Prefer it over explorer scraping when you need machine-readable block metadata (base fee, gas, miner, tx count) programmatically. It complements gas-price endpoints when you need full block context rather than just current gas conditions.

## Known failure modes

- Block number does not exist yet (future block) — may return error or empty
- Invalid block number format (non-numeric string) — likely returns 400 or parsing error
- RPC node temporarily unavailable — may return 500 or timeout
- Omitting the query parameter returns latest block (not an error, but callers expecting a specific block must pass ?n=)

## How this service works

A Base block read live from the chain: timestamp, transaction count, base fee, gas used and limit, miner. Pass ?n=<number> or omit for the latest block. No third-party API, no cache.

## Output

Returns a JSON object containing the block's timestamp, number of transactions, base fee per gas, gas used, gas limit, and miner address — all read live from the Base chain at request time with no caching.

## 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": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "n"
     ],
     "properties": {
      "n": {
       "type": "string",
       "description": "Block number (decimal); omit for latest"
      }
     }
    }
   }
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/blockpost-block-a7590838/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oraclepost.higgsfield.app](https://www.zero.xyz/host/oraclepost.higgsfield.app/llms.txt)
