Query the Validator Set

Get info on validators for an L1.

Query the Validator Set

Logo

L1 Validators

Query the validators of an L1 from the P-Chain using the Avalanche API

Validator List

0 Validators

No validators found

To query the validator set, you can use the Data API from AvaCloud.

Using the Data API

  1. Navigate to the List L1 Validators API endpoint
  2. Enter your subnetID in the required field
  3. Select your network from the dropdown (mainnet or fuji)
  4. Click "Execute" to send the API request
  5. The response will display your current validator set

The response will show your validator set in the following format:

{
  "nextPageToken": "<string>",
  "validators": [
    {
      "validationId": "<string>",
      "nodeId": "<string>",
      "subnetId": "<string>",
      "weight": 123,
      "remainingBalance": 123,
      "creationTimestamp": 123,
      "blsCredentials": {},
      "remainingBalanceOwner": {
        "addresses": [
          "<string>"
        ],
        "threshold": 123
      },
      "deactivationOwner": {
        "addresses": [
          "<string>"
        ],
        "threshold": 123
      }
    }
  ]
}

You can see that the validators array contains the validator set.

Double check that the validators you listed in the convertSubnetToL1Tx are in the validator set.

Alternatively, you can use the validators_getCurrentValidators endpoint from the Subnet EVM API.

Is this guide helpful?

On this page