Validator

Fetch all validators

Retrieves a list of all validators in the staking contract from the Nimiq RPC. This includes their address, signing and voting keys, reward address, balance, number of stakers, and retired status.

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

List of all validators retrieved successfully

{
  "data": [
    {
      "address": "string",
      "signingKey": "string",
      "votingKey": "string",
      "rewardAddress": "string",
      "balance": 0,
      "numStakers": 0,
      "retired": true
    }
  ],
  "metadata": {
    "blockNumber": 0,
    "blockHash": "string"
  }
}