curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.sampleValidators' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.sampleValidators",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"validators": [
"NodeID-111111111111111111116DBWJs"
]
},
"id": 1
}SampleValidators returns a sampling of the list of current validators
curl --request POST \
--url 'https://api.avax.network/ext/bc/P#platform.sampleValidators' \
--header 'Content-Type: application/json' \
--data '
{
"jsonrpc": "2.0",
"method": "platform.sampleValidators",
"params": {},
"id": 1
}
'{
"jsonrpc": "2.0",
"result": {
"validators": [
"NodeID-111111111111111111116DBWJs"
]
},
"id": 1
}JSON-RPC request
Was this page helpful?