Marketplace has launched, further enabling blockchain developers! Learn more


platform.getValidatorsAt RPC method

The API credit value for this method is 1 . To learn more about API credits and each method's value, visit the API Credits page.


  1. height - int - the numerical value representing the P-Chain height to get the validator set at.
  2. subnetID - string - (optional) the subnet ID to get the validator set of. If not given, gets validator set of the Primary Network.


  1. validators - object - the validators and their weights of a subnet or the Primary Network.

Code Examples:

const ethers = require("ethers");

(async () => {
  const provider = new ethers.providers.JsonRpcProvider(
  const params = {
    "height": 1,
    "subnetID": "11111111111111111111111111111111LpoYY",
  const result = await provider.send("platform.getValidatorsAt", params);
Ready to get started? Create a free account