Skip to content
Alchemy Logo

platform.getValidatorsAt

POST
/{apiKey}

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

Path Parameters

stringrequireddefaults to docs-demo

For higher throughput, create your own API key

Request

integeroptional

The P-Chain height.

stringoptional

The subnet ID. If omitted, uses the Primary Network.

Responses

200

validators is an object mapping nodeID to weight.

Was this page helpful?