---
title: "Latest Block"
method: GET
path: "/v1/blocks/latest"
tags: ["blocks"]
---

# Latest Block

`GET /v1/blocks/latest`

## Request

- Base URL: `https://api.bitpoort.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.bitpoort.com/v1/blocks/latest`
- Auth: one of:
  - API key in header `X-API-Key`
  - HTTP bearer

Latest block for a chain. Convenience alias — equivalent to
``/v1/blocks/{chain}?limit=1`` but with a flatter shape so agents can do
``GET /v1/blocks/latest?chain=ETH`` without needing to know the path-param
convention. The single block is returned under the ``block`` key.

## Query parameters

- `chain` string, required: Chain ID (ETH, BTC, HL, POLYGON)

## Response `200`

Latest indexed block for the requested chain plus the current head block number.

- BlockLatestResponse
  - `chain` string, required
  - `block` BlockItem
    - `chain` string, required
    - `number` integer, required
    - `hash` string, required
    - `txCount` integer, nullable
    - `gasUsed` integer, nullable
    - `gasLimit` integer, nullable
    - `baseFee` integer, nullable
    - `headBlock` integer, nullable
    - `lag` integer, nullable
    - `blockTime` number, nullable
    - `status` string, nullable
  - `head_block` integer, nullable

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/bitpoort/apis/bitpoort-api.md) · [All operations](https://skmtc.dev/bitpoort/apis/bitpoort-api/llms.txt) · [OpenAPI document](https://skmtc.dev/bitpoort/apis/bitpoort-api/revisions/1a51d8566777?raw)
