Skip to main content

platform.sampleValidators RPC Method

Sample validators from the specified Subnet.

Updated on
Dec 4, 2024

platform.sampleValidators RPC Method

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
1
curl --location --request POST https://docs-demo.flare-mainnet.quiknode.pro/ext/bc/P \
2
--header 'Content-Type: application/json' \
3
--data-raw '{
4
"jsonrpc":"2.0",
5
"id" :1,
6
"method" :"platform.sampleValidators",
7
"params" :{
8
"size": 2
9
}
10
}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free