Skip to main content

platform.getCurrentValidators RPC Method

List the current validators of the given Subnet.

Updated on
Nov 2, 2023

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
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.getCurrentValidators",
6
"params": {},
7
"id": 1
8
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free