Query the Validator Set

Get info on validators for an L1.

Query the Validator Set

Avalanche Logo

Core Wallet Required

To interact with Avalanche Builder Hub, you'll need to install the Core wallet extension.

Core is a secure wallet for managing digital assets on Avalanche

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

Privacy Policy

We respect your privacy and are committed to protecting your personal data. This privacy policy will inform you about how we look after your personal data and tell you about your privacy rights.

Read full policy