This section explains how to become a Validator.
- Create a
Stash
account by following the instructions. - Create a
Controller
account by following the instructions. - Testnets Only! - **** Fund Stash and Controller accounts with native tokens by using Cere FriendBot (you can take account public keys in the Account tab in the Cere Explorer by clicking on the round icon to the left of the account name).
- Wait until your local Node is synced. Syncing should happen automatically after X minutes.
- Add a Validator via Cere Explorer (check here how to connect to your node).
- Generate
Session Key
.-
Go to
Developer
→RPC calls.
-
Select
author
→rotateKeys()
function. -
Click
Submit RPC call.
-
Store your
session key
for the later steps (double click on the response below and copy to clipboard).session key
example can be found below:0x11b76096f732a6d22bcfc0c1b5acfe871d8430e2d44a60765d6bb4f4db989ed354e2a0cc60489c4e5c850a2d83e778f9968e3cd3acba86f24f9ea522c95755101ec09626e5ec94c5a10ca83b4994fe580a6ab9f6f720f97858b905d84d794f072603b677467097c1209ebab19a14d285e6174004e4f1459c4f823bb5c8a05c0c
-
- Setup Validator
- Go to
Network
→Staking
- Select
Account Actions
tab and click+ Validator
- Bond your Tokens. Bond a maximum of 95% of your tokens, or an amount that makes sense to leave enough for several transactions so that you are still able to pay for transaction fees.
- Click
next.
- Enter generated
Session Key
and you will then have your account entered into the validators account list. - Set
reward commission percentage
equal to5
- Press
Bond & Validate
- Press
Sign and Submit
- Go to
- Generate
- IGNORE if you completed #5, BETA! - Add a Validator by using an automated script.
-
Replace the .env.* config with appropriate values.
Parameter Description PROVIDER Websocket link for the local node STASH_ACCOUNT_MNEMONIC Stash account mnemonic CONTROLLER_ACCOUNT_MNEMONIC Controller account mnemonic BOND_VALUE Staking value (Should be multiplied to 10^15) REWARD_COMMISSION Percentage reward (0-100) that should be applied for the validator -
Run the script.
docker-compose --env-file $CONFIG_FILE up add_validator
-
Once it is finished, you should see the
Validator added successfully!
message. -
Clean up the values in your .env config file
-
Congratulations! Now your Validator is in a waiting state.