platform.sampleValidators RPC Method
Parameters
size
int
the number of validators to sample.
subnetID
string
the Subnet to sample from. If omitted, defaults to the Primary Network.
Returns
validators
[]string
IDs ofvalidator.
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"id" :1,6"method" :"platform.sampleValidators",7"params" :{8"size": 29}10}'
Don't have an account yet?
Create your QuickNode endpoint in seconds and start building
Get started for free