Get validator set at a specified height. Validators are sorted first by voting power (descending), then by address (ascending).
Parameters
height
- integer, height to return. If no height is provided, it will fetch validator set which corresponds to the latest block. Default value = 0page
- integer, page number (1-based). Default value = 1per_page
- integer, number of entries per page (max: 100). Default value: 30
Result
Get Validators. Validators are sorted first by voting power (descending), then by address (ascending).
Example
Request
curl <your-tendermint-endpoint>/validators?height=8200791&page=1&per_page=3
Return
{
"jsonrpc": "2.0",
"id": -1,
"result": {
"block_height": "8200791",
"validators": [
{
"address": "83F47D7747B0F633A6BA0DF49B7DCF61F90AA1B0",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "W459Kbdx+LJQ7dLVASW6sAfdqWqNRSXnvc53r9aOx/o="
},
"voting_power": "13207556",
"proposer_priority": "39170190"
},
{
"address": "F8C01C0681578AA700D736D675C9992065F65E3E",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "NK3/1mb/ToXmxlcyCK8HYyudDn4sttz1sXyyD+42x7I="
},
"voting_power": "10103704",
"proposer_priority": "26855105"
},
{
"address": "AC2D56057CD84765E6FBE318979093E8E44AA18F",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "0kNlxBMpm+5WtfHIG1xsWatOXTKPLtmSqn3EiEIDZeI="
},
"voting_power": "10028010",
"proposer_priority": "-60857150"
}
],
"count": "3",
"total": "150"
}
}