After setting up your HydraDX node, you need to bond HDX tokens and set the validator keys before you can start validating.
Running a validator node requires a certain technical skillset needed for the proper setup of the node, and for guaranteeing its uptime. We also require validators to be always running the node using the latest stable release. If you are not sure what you are doing here, we recommend that you nominate your HDX to an experienced validator instead. By doing so, you protect yourself and your nominators against an involuntary loss of funds.
In order to take part at the network as a validator node, you need to bond some amount of HDX tokens. If you do not have any HDX, it is not possible to participate in the initial stage of the testnet. However, some exciting news will be announced by the team in the upcoming weeks so stay posted and subscribe to our newsletter.
Are you still in possession of xHDX tokens that you bought during the Balancer LBP event? You first need to claim your HDX before continuing.
Bonded HDX tokens are at stake for guaranteeing the security of the network. Improper behavior of the validator node may be punished by slashing which can lead to an involuntary loss of funds. We strongly recommend that you only proceed if you really know what you are doing.
For the next step, go to Network > Staking > Account actions > + Stash
After clicking the Stash button, you should see the bonding preferences with four editable fields:
- stash account: the account holding the majority of your HDX tokens. HDX will be staked from this account.
- controller account: an account holding a smaller portion of HDX needed to cover the fees associated with starting and stopping the process of validating.
- value bonded: the amount of HDX you are bonding. Do not bond all HDX that you have - instead, leave some to cover the transaction fees which occur later.
- payment destination: the account to which the validating rewards will be sent.
Do not bond all your available HDX tokens. Leave a small reserve for covering the transactions fees. If you bond all HDX tokens that you have, you may not be able to sign the transaction for starting the validation process.
After adjusting the bonding preferences, click Bond and sign transaction to complete the bonding process.
For security reasons, it is not recommended to have the same Stash and Controller accounts. However, since transfers are disabled on Snakenet, it is currently not possible to use separate accounts. We highly recommend that you switch to separate Stash and Controller accounts as soon as this becomes possible in the future.
The second step is to generate your session keys. The session keys are used to associate the validator node with your Controller account and the staked HDX. It is therefore important that they are set up correctly.
To generate your session keys, run on the node:
You can find your session keys under the result part of the output (
0x9257... in the example output above).
To associate the generated session keys with your Controller account, navigate to the following menu item in the Polkadot/apps: Developer > Extrinsics
Fill in the fields:
- using selected account: select your Controller account;
- submit the following extrinsic: select
sessionon the left side and
setKeyson the right;
- keys: enter your session keys from the previous step;
To complete, click Submit Transaction and sign the transaction.
Before you continue, you should make sure that your node is running and that the synchronization process is fully complete. The most certain way to check the state of synchronization is directly on the node itself:
You can compare the block number from the output (in the example above:
#622025) with the current block number which you can find in Polkadot/apps Explorer. At the time of writing, the current block is
#622240, meaning that the node used for the example is not fully synced.
Please wait until the block number shown in your local logs matches the current block number of the network.
To start validating, navigate in Polkadot/apps:
Network > Staking > Account actions > Validate (button next to your bonded HDX)
After clicking on the Validate button you should see a popup called set validator preferences. Here, you need to set your reward commission percentage. This is the proportion of the rewards which will be paid out to you. The remaining rewards will be split across your nominators in accordance with their stake. If you decide to not take any reward commission, you can set the percentage to 0.
To confirm, click Validate and sign the transaction.
You can check the status of your validator node in the Polkadot/apps under:
Network > Staking > Staking overview
This tab provides an overview of all active validators connected to the network. At the top, there is an indication of the amount of validator slots available, as well as the number of nodes that have signaled their intention to be a validator. You can confirm whether your node is in the waiting queue by clicking on the Waiting tab.
Your validator node will remain in the waiting queue until it has been selected to be included in the validator set. The validator set is updated every era which allows for new nodes to be included, provided there are empty slots.
Thank you for supporting HydraDX by becoming a Snakenet validator! 🎉