Macro block

Fetch last macro block at a given block number

Fetches the block number (height) of the last macro block at a given block number from the Nimiq RPC. If the given block number is a macro block, it returns that block number.

GET
/getLastMacroBlock/{blockNumber}
/getLastMacroBlock/3333330

Path Parameters

blockNumber
Required
integer

The block number to check for the last macro block.

curl -X GET "https://api.nimiqhub.com/getLastMacroBlock/3333330"

Last macro block data successfully retrieved

{
  "lastMacroBlock": {
    "data": 3333330,
    "metadata": null
  }
}