Validator Setup
Last updated
Was this helpful?
Last updated
Was this helpful?
The first step is to create a new key pair for your validator. Replace my-key-name
with a key name of your choice and run the following:
After creating a new key, you'll see its information and its seed phrase. It's essential to write down this seed phrase and keep it in a safe place. The seed phrase is the only way to restore your keys. Losing it can result in the irrecoverable loss of WARD tokens.
Alternatively, you can restore an existing wallet with a mnemonic seed phrase. Replace your-wallet-name
with a key name of your choice and run the following:
Then get your public address:
In the next steps, you'll register your new validator by submitting a create-validator
transaction. Transactions consume gas, so you need to fund your newly created address from the first step.
You can obtain testnet WARD in one of our faucet:
To verify your balance, use this command:
Once the node is synced and you have the required WARD, you can become a validator.
To create a validator and initialize it with a self-delegation, you need to create a validator.json
file and submit a create-validator transaction:
Obtain your validator public key by running the following command:
The output will be similar to this (with a different key):
Create a file named validator.json
with the following contents:
Here you have the chance to set your validator’s commission rate, maximum rate, and maximum change rate. You can also make the initial self-delegation (amount
). Remember to replace the pubkey
field with your own key obtained in the previous step.
When you specify commission parameters, the commission-max-change-rate
is measured as a percentage point change of the commission-rate
. For example, a change from 1% to 2% is a 100% rate increase, but the commission-max-change-rate
is measured as 1%.
Finally, you're ready to submit the transaction to create the validator:
This transaction is just an example. If you want to see an explanation of the parameters values or see all the available flags that can be set to customize your validators you can enter this command: wardend tx staking create-validator --help
There are certain files you need to back up to be able to restore your validator if, for some reason, it’s damaged or lost. Please make a secure, encrypted backup of the following files:
priv_validator_key.json
node_key.json
Check if your validator is in the active set by running this command:
If the output is empty, your validator isn't in the active set.