Skip to main content

platform.getValidatorsAt RPC Method

Get the validators and their weights of a subnet or the Primary Network at a given P-Chain height.

Updated on
Apr 29, 2026
To use the platform.getValidatorsAt method on the P-Chain, ensure that the end of your URL includes ext/bc/P.

Parameters

height
integer

The numerical value representing the P-Chain height to get the validator set at

subnetID
string

The subnet ID to get the validator set of. If not given, gets validator set of the primary network

Returns

result
object

A map where each key is a NodeID string and the value contains the validator's details. Example key: NodeID-2a7BPY7UeJv2njMuyUHfBSTeQCYZj6bwV

publicKey
string | null

The BLS public key of the validator, or null if not set

weight
string

The weight of the validator at the given height

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"NodeID-2a7BPY7UeJv2njMuyUHfBSTeQCYZj6bwV": {
5
"publicKey": null,
6
"weight": "198092089900240970"
7
},
8
"NodeID-2hCHs6H4Vde8mdGGKidMvT4Fjit7goCBT": {
9
"publicKey": null,
10
"weight": "27491992221124000"
11
}
12
},
13
"id": 1
14
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"NodeID-2a7BPY7UeJv2njMuyUHfBSTeQCYZj6bwV": {
5
"publicKey": null,
6
"weight": "198092089900240970"
7
},
8
"NodeID-2hCHs6H4Vde8mdGGKidMvT4Fjit7goCBT": {
9
"publicKey": null,
10
"weight": "27491992221124000"
11
}
12
},
13
"id": 1
14
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free