bus

Get 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.

get/bus/consensus/state

Response

Successfully retrieved consensus state

blockHeightinteger

The current block height

lastBlockTimestring date-time

The time of the last block

syncedboolean

Whether the node is synced with the network

Example response

{
  "blockHeight": 92813
}

Changes

Changed in 4 of the 50 revisions of this API.24

    • api tag bus added

      api-tag-added

    • added the non-success response with the status 500

      response-non-success-status-added

  • 719a1b5e14dd11See the full diff
    • the blockHeight response's property type/format changed from integer/uint64 to / for status 200

      response-property-type-changed

    • added BlockHeight subschema #2 to the blockHeight response property allOf list for the response status 200

      response-property-all-of-added

    • endpoint added

      endpoint-added

    • api path removed without deprecation

      api-path-removed-without-deprecation

    This revision also has 99 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog