Info
Get validator set at a specified height
Changed onGet Validators. Validators are sorted by voting power.
If the height field is set to a non-default value, upon success, the Cache-Control header will be set with the default maximum age.
get/validators
Request
- Base URLhttp://localhost:26657
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Query parameters
heightinteger
height to return. If no height is provided, it will fetch validator set which corresponds to the latest block.
pageinteger
Page number (1-based)
per_pageinteger
Number of entries per page (max: 100)
Response
Commit results.
Example response
{
"jsonrpc": "2.0",
"result": {
"block_height": "55",
"validators": [
{
"address": "000001E443FD237E4B616E2FA69DF4EE3D49A94F",
"pub_key": {
"type": "tendermint/PubKeyEd25519",
"value": "9tK9IT+FPdf2qm+5c2qaxi10sWP+3erWTKgftn2PaQM="
},
"voting_power": "239727",
"proposer_priority": "-11896414"
}
],
"count": "1",
"total": "25"
}
}Changes
- info
endpoint added
- info
- breaking
api path removed without deprecation
- breaking