platform.getValidatorsAt

Get the validators and their weights of a subnet or the Primary Network at a given P-Chain height.

Signature​

platform.getValidatorsAt(
    {
        height: int,
        subnetID: string, // optional
    }
)
  • height is the P-Chain height to get the validator set at.

  • subnetID is the subnet ID to get the validator set of. If not given, gets validator set of the Primary Network.

Example

Request

curl -X POST --data '{
    "jsonrpc": "2.0",
    "method": "platform.getValidatorsAt",
    "params": {
        "height":1
    },
    "id": 1
}' -H 'content-type:application/json;' https://ava-mainnet.blastapi.io/<project-id>/ext/P

Last updated