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/{batchNumber}

Path Parameters

batchNumber
Required
integer

The batch number to fetch the inherents for.

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

Inherents successfully retrieved

{
  "data": [
    {
      "type": "string",
      "blockNumber": 0,
      "blockTime": 0,
      "validatorAddress": "string",
      "offenseEventBlock": null,
      "target": null,
      "value": null,
      "hash": null
    }
  ],
  "metadata": null
}