Add a Validator

Add a validator to your Avalanche L1.

To add a validator to your Avalanche L1, you need to call the initiateValidatorRegistration function on the ValidatorManager contract.

This function will kick off the registration process for a new validator. The process includes the following steps:

  1. The L1 emits a L1ValidatorRegistrationMessage Warp message in the transaction logs.
  2. Request an aggregated signature of the message from the L1's validators.
  3. Submit the signed message to the P-Chain in a L1ValidatorRegistration transaction.
  4. The wait for the transaction to be committed on the P-Chain.
  5. Construct a RegisterL1ValidatorMessage Warp message.
  6. Request an aggregated signature of the RegisterL1ValidatorMessage Warp message from the L1's validators.
  7. Submit the signed RegisterL1ValidatorMessage to the ValidatorManager contract in a completeValidatorRegistration transaction.

In short, the L1 does a round trip message with the P-Chain to register the validator.

Logo

Add New Validator

Add a validator to your L1 by following these steps in order.

Select L1 Subnet

Choose the L1 subnet where you want to add the validator.

Add Validator Details

Add the validator details including node credentials and configuration.

Add Validator

Click the copy button to copy the command and run it in your node's terminal to get the node credentials.

curl -X POST --data '{"jsonrpc":"2.0","id":1,"method":"info.getNodeID"}' -H "content-type:application/json;" 127.0.0.1:9650/ext/info

Paste the JSON response below:

Initiate Validator Registration

Submit the validator registration transaction to the blockchain.

Please select an L1 subnet first.

Sign Warp Message & Submit to P-Chain

Sign the warp message and submit the validator registration to the P-Chain.

Please select an L1 subnet first.

Sign P-Chain Warp Message & Complete Registration

Complete the validator registration by signing the P-Chain warp message.

Please select an L1 subnet first.

Is this guide helpful?

On this page

No Headings