Validators
platform.getCurrentValidators
GetCurrentValidators returns the current validators. If a single nodeID is provided, full delegators information is also returned. Otherwise only delegators' number and total weight is returned.
JSON-RPC request
jsonrpcstring
methodstring
params
Method parameters
idinteger
Response Body
application/json
application/json
curl -X POST "https://api.avax.network/ext/bc/P#platform.getCurrentValidators" \ -H "Content-Type: application/json" \ -d '{ "jsonrpc": "2.0", "method": "platform.getCurrentValidators", "params": {}, "id": 1 }'{
"jsonrpc": "2.0",
"result": {
"validators": [
{}
]
},
"id": 1
}{
"jsonrpc": "2.0",
"error": {
"code": 0,
"message": "string",
"data": {}
},
"id": 1
}Is this guide helpful?