Skip to main content

platform.sampleValidators RPC Method

Sample validators from the specified Subnet.

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

Parameters

size
integer

The number of validators to sample

subnetID
string

The Subnet to sample from. If omitted, defaults to the Primary Network

Returns

validators
array

An array of IDs of validator

Request
Response
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"validators": [
5
"NodeID-FXJQRCN2nEqBYVsorBS5WHriwihjzv7G6"
6
]
7
},
8
"id": 1
9
}
1
{
2
"jsonrpc": "2.0",
3
"result": {
4
"validators": [
5
"NodeID-FXJQRCN2nEqBYVsorBS5WHriwihjzv7G6"
6
]
7
},
8
"id": 1
9
}
Don't have an account yet?
Create your Quicknode endpoint in seconds and start building
Get started for free