---
title: "POST /block/latest"
method: POST
path: "/block/latest"
---

# POST /block/latest

`POST /block/latest`

Get the latest block. Useful for checking synchronization process and pagination

## Request body

- BlockLatestRequest
  - `offset` number, double, required — Note: an offset of -1 is treated the same as an offset of +1 It's usually best to avoid pagination on the latest block as in Cardano, small rollbacks of 1~2 block are very frequent and expected (read Ouroboros for why) That means that using this block for pagination will often lead to your pagination being invalidated by a rollback To avoid this, you can pass an `offset` from the tip for more stable pagination

## Response `200`

- BlockLatestResponse
  - `block` BlockSubset, required
    - `slot` number, double, required
    - `epoch` number, double, required
    - `height` number, double, required
    - `hash` string, required
    - `era` number, double, required

## Other responses

- `400`
- `409`

## Changes

- **2023-12-01** `bfb1cc42bf41` — 1 info
  - the `block/hash` response's property pattern `[0-9a-fA-F]{64}` was added for the status `200`
- **2022-05-24** `26c530df5eff` — 2 info
  - added the non-success response with the status `409`
  - removed the non-success response with the status `422`
- **2022-05-21** `935487c58461` — 2 info
  - added the non-success response with the status `422`
  - removed the non-success response with the status `428`
- **2022-05-10** `f39bef51175a` — 3 info
  - added the non-success response with the status `428`
  - removed the non-success response with the status `409`
  - the `block/hash` response's property pattern `[0-9a-fA-F]{64}` was removed for the status `200`

[Change history](https://skmtc.dev/dcspark/apis/carp/changes/block/latest/post.md)

---

[API](https://skmtc.dev/dcspark/apis/carp.md) · [All operations](https://skmtc.dev/dcspark/apis/carp/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dcspark/carp/revisions/77a569a8eb32/schema)
