Macro block

Fetch the preceding macro block before a specified block number

Retrieves the block number (height) of the preceding macro block before the specified block number from the Nimiq RPC. If the given block number is a macro block, it returns the macro block before it.

GET
/getMacroBlockBefore/{blockNumber}
/getMacroBlockBefore/4158990

Path Parameters

blockNumber
Required
integer

The height of the block to retrieve the preceding macro block before

curl -X GET "https://api.nimiqhub.com/getMacroBlockBefore/4158990"

Macro block number retrieved successfully

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