curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getCurrentValidators' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getCurrentValidators",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"validators": [
{}
]
},
"id": 1
}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.
curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.getCurrentValidators' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.getCurrentValidators",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"validators": [
{}
]
},
"id": 1
}JSON-RPC request
Was this page helpful?