Inherent

Fetch all inherents for a batch number

Fetches all the inherents (including reward inherents) for the given batch number from the Nimiq RPC. Note that this only considers blocks in the main chain.

GET
/getInherentsByBatchNumber/{batchNumber}
/getInherentsByBatchNumber/18783

Path Parameters

batchNumber
Required
integer

The batch number to fetch the inherents for.

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

Inherents successfully retrieved

{
  "data": [
    {
      "type": "penalize",
      "blockNumber": 3032557,
      "blockTime": 1720804270685,
      "validatorAddress": "NQ57 2F6C X3GB Y9B7 04U5 2BVA 4BVC M2T0 ELRL",
      "offenseEventBlock": 3032557
    },
    {
      "type": "penalize",
      "blockNumber": 3032578,
      "blockTime": 1720804291678,
      "validatorAddress": "NQ57 2F6C X3GB Y9B7 04U5 2BVA 4BVC M2T0 ELRL",
      "offenseEventBlock": 3032578
    }
  ],
  "metadata": null
}