platform.getCurrentValidators RPC Method
Parameters
subnetID
string
The subnet whose current validators are returned. If omitted, returns the current validators of the Primary Network
nodeIDs
string
A list of the nodeIDs of pending validators to request. If omitted, all pending validators are returned. If a specified nodeID is not in the set of pending validators, it will not be included in the response
Returns
validators
An array of objects with the following fields:
Request
1curl --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.getCurrentValidators",6"params": {},7"id": 18}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free