Election

Fetch the election block number for a given epoch

Fetches the block number of the election macro block for a given epoch from the Nimiq RPC. The election macro block is always the last block of the epoch.

GET
/getElectionBlockOf/{epoch}
/getElectionBlockOf/1025

Path Parameters

epoch
Required
integer

The epoch number to fetch the election block for.

curl -X GET "https://api.nimiqhub.com/getElectionBlockOf/1025"

Election block number successfully retrieved

{
  "electionBlockNumber": {
    "data": 3075210,
    "metadata": null
  }
}