Macro block

Fetch the macro block number of a specified batch

Retrieves the block number (height) of the macro block (checkpoint or election) for the given batch from the Nimiq RPC. The macro block is always the last block of the batch.

GET
/getMacroBlockOf/{batch}
/getMacroBlockOf/18783

Path Parameters

batch
Required
integer

The batch number to retrieve the macro block number for

curl -X GET "https://api.nimiqhub.com/getMacroBlockOf/18783"

Macro block number retrieved successfully

{
  "macroBlockNumber": {
    "data": 3032070,
    "metadata": null
  }
}