Validator
Create a validator
If you want to create a validator in the testnet, follow the instructions in the Creating a validator section.
Create Wallet
wardend keys add wallet
Faucet token: replace < your-address> by your warden address
curl -XPOST -d '{"address": "<your-address>"}' https://faucet.buenavista.wardenprotocol.org
Check Banlance
wardend q bank balances $(wardend keys show wallet -a)
Create a new validator
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:
wardend comet show-validator
The output will be similar to this (with a different key):
{"@type":"/cosmos.crypto.ed25519.PubKey","key":"lR1d7YBVK5jYijOfWVKRFoWCsS4dg3kagT7LB9GnG8I="}
Create validator.json file
nano validator.json
The validator.json file has the following format: Change your personal information accordingly
{
"pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"lR1d7YBVK5jYijOfWVKRFoWCsS4dg3kagT7LB9GnG8I="},
"amount": "1000000uward",
"moniker": "your-node-moniker",
"identity": "keybase",
"website": "optional website for your validator",
"security": "optional security contact for your validator",
"details": "optional details for your validator",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
Finally, we're ready to submit the transaction to create the validator:
wardend tx staking create-validator $HOME/validator.json \
--from=wallet \
--chain-id=buenavista-1 \
--fees=500uward
Delegate Token to your own validator
wardend tx staking delegate $(wardend keys show wallet --bech val -a) 1000000uward \
--from=wallet \
--chain-id=buenavista-1 \
--fees=500uward
Withdraw rewards and commission from your validator
wardend tx distribution withdraw-rewards $(wardend keys show wallet --bech val -a) \
--from wallet \
--commission \
--chain-id=buenavista-1 \
--fees=500uward
Unjail validator
wardend tx slashing unjail \
--from wallet \
--commission \
--chain-id=buenavista-1 \
--fees=500uward
Backup Validator
cat $HOME/.warden/config/priv_validator_key.json
Remove node
sudo systemctl stop wardend && sudo systemctl disable wardend && \
sudo rm /etc/systemd/system/wardend.service && sudo systemctl daemon-reload && \
rm -rf $HOME/.warden && \
rm -rf $HOME/wardenprotocol && \
rm -rf $HOME/warden_auto && \
rm -f $(which wardend) && \
rm -rf $HOME/warden
Last updated