---
title: "Get consensus state"
method: GET
path: "/bus/consensus/state"
tags: ["bus"]
---

# Get consensus state

`GET /bus/consensus/state`

Returns the current block height and the time at which the last block got mined, along with a boolean indicating whether the node is synced. A node is considered synced if the last block time is less than three hours ago.

## Response `200`

Successfully retrieved consensus state

- ConsensusState
  - `blockHeight` integer — The current block height
  - `lastBlockTime` string, date-time — The time of the last block
  - `synced` boolean — Whether the node is synced with the network

## Other responses

- `500` — Internal server error

## Changes

- **2024-12-18** `922f156353c9` — 2 info
  - api tag `bus` added
  - added the non-success response with the status `500`
- **2024-12-16** `719a1b5e14dd` — 1 breaking, 1 info
  - the `blockHeight` response's property type/format changed from `integer`/`uint64` to ``/`` for status `200`
  - added `#/components/schemas/BlockHeight, subschema #2` to the `blockHeight` response property `allOf` list for the response status `200`
- **2024-12-12** `2b2596339fdd` — 1 info
  - endpoint added
- **2024-12-09** `f062c35d8f47` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/siafoundation/apis/renterd-api/changes/bus/consensus/state/get.md)

---

[API](https://skmtc.dev/siafoundation/apis/renterd-api.md) · [All operations](https://skmtc.dev/siafoundation/apis/renterd-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/siafoundation/renterd-api/revisions/184a3d5207da/schema)
