Batch

Fetch batch index at a specific block height

Fetches the batch index at the given block height from the Nimiq RPC. The batch index is the number of a block relative to the batch it is in. For example, the first block of any batch always has a batch index of 0.

GET
/getBatchIndexAt/{blockNumber}
/getBatchIndexAt/3642366

Path Parameters

blockNumber
Required
integer

The block height to fetch the batch index for.

curl -X GET "https://api.nimiqhub.com/getBatchIndexAt/3642366"

Batch index successfully retrieved

{
  "batchIndex": {
    "data": 2,
    "metadata": null
  }
}