platform.sampleValidators

Returns a sample of validators of the specified subnet.

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 of validators.
Language
Authorization
Header
Click Try It! to start a request and see the response here!