Election

Fetch the election block number after a given block number

Fetches the number (height) of the next election macro block after a given block number from the Nimiq RPC.

GET
/getElectionBlockAfter/{blockNumber}
/getElectionBlockAfter/3334400

Path Parameters

blockNumber
Required
integer

The block number to fetch the next election block after.

curl -X GET "https://api.nimiqhub.com/getElectionBlockAfter/3334400"

Election block number successfully retrieved

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