Epoch

Fetch the epoch number at a given block number

Fetches the epoch number for the given block number from the Nimiq RPC.

GET
/getEpochAt/{blockNumber}
/getEpochAt/4158990

Path Parameters

blockNumber
Required
integer

The block number to fetch the epoch number for.

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

Epoch number successfully retrieved

{
  "epochNumber": {
    "data": 7,
    "metadata": null
  }
}