curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "platform.getValidatorsAt",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Get the validators and their weights of a Subnet or the Primary Network at a given P-Chain height.
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "platform.getValidatorsAt",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
platform.getValidatorsAt:params.height: The P-Chain block height to query validator set for.params.subnetID: Subnet ID to query validator set for. If omitted, queries the Primary Network.Show properties
curl --request POST \
--url https://api.uniblock.dev/uni/v1/json-rpc?chainId=43114 \
--header 'content-type: application/json' \
--data '{
"id": 1,
"jsonrpc": "2.0",
"method": "platform.getValidatorsAt",
"params": {}
}'
{
"jsonrpc": "2.0",
"id": 1,
"result": {}
}
Was this page helpful?