Network

Fetch slot information at a specified block height and optional offset

Retrieves the validator slot data for a given block height and optional offset from the Nimiq RPC. Only data for the last 2 batches is available.

GET
/getSlotAt/{blockNumber}/{offsetOpt}
/getSlotAt/{blockNumber}/{offsetOpt}

Path Parameters

blockNumber
Required
integer

The height of the block.

offsetOptinteger

Optional offset for the slot data.

curl -X GET "https://test.nimiqhub.com/getSlotAt/0/0"

Slot information retrieved successfully

{
  "data": {
    "slotNumber": 0,
    "validator": "string",
    "publicKey": "string"
  },
  "metadata": {
    "blockNumber": 0,
    "blockHash": "string"
  }
}