Skip to main content

platform.getPendingValidators RPC Method

List the validators in the pending validator set of the specified Subnet. Each validator is not currently validating the Subnet but will in the future. The API credit value for this method is 1.

Updated on
Jun 9, 2023

platform.getPendingValidators RPC Method

Parameters

subnetID
The subnet whose current validators are returned. If omitted, returns the current validators ofthe Primary Network.
nodeIDs
[]string
a list of the nodeIDs of pending validators to request. If omitted, all pending validators are returned. Ifa specified nodeID is not in the set of pending validators, it will not be included in the response.

Returns

validators
object
Request
1
curl --location --request POST https://docs-demo.avalanche-mainnet.quiknode.pro/ext/bc/C/rpc/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc": "2.0",
5
"method": "platform.getPendingValidators",
6
"params": {
7
"subnetID": null,
8
"nodeIDs": []
9
},
10
"id": 1
11
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free