wardend q bank balances $(wardend keys show wallet -a)
wardend q bank balances "Any other or your wallet"
โ๏ธ Validator Commands
Create a validator.json file
touch $HOME/.warden/config/validator.json
Open a validator.json file
nano $HOME/.warden/config/validator.json
Paste this into the open validator.json file, pre-replacing all values โโthat start with $
(you can do it in any convenient editor, not directly in nano mode)
To find out your pubkey, use the command
wardend tendermint show-validator
Output Example:
The output will be similar to this (with a different key):
โฝ Replace the following values with your own: WALLET - usually it's 'wallet', or your wallet's name.
MONIKER - any convenient name for your validator, displayed in the explorer.
IDENTITY - validator's avatar, displayed in the explorer. Create a KeyBase ID following the instructions or leave it empty, and it will default to a standard one.
DETAILS - details about your validator, also displayed in the explorer.
Replace all necessary values indicated above with the $ sign to successfully create your validator.
โฝ Example:
{
"pubkey": {"@type":"/cosmos.crypto.ed25519.PubKey","key":"lR1d7YBVK5jYijOfWVKRFoWCsS4dg3kagT7LB9GnG8I="},
"amount": "1000000award",
"moniker": "Oliver",
"identity": "", #if you have your identifier, replace it, or leave it blank
"website": "", #if you have your website, replace it, or leave it blank
"security": "qwerty@gmail.com",
"details": "A reliable validator",
"commission-rate": "0.1",
"commission-max-rate": "0.2",
"commission-max-change-rate": "0.01",
"min-self-delegation": "1"
}
After creating the validator.json and entering all the necessary information, as well as provided that there are tokens in the wallet, run the create command:
wardend tx gov submit-proposal \
--title="Title" \ #Change Title
--description="Description" \
--deposit=1000000award \
--type="Text" \ #Change text proposal
--from=wallet \ #Change name wallet
--fees 25000000award \
-y
โ๏ธ Utility
Set Custom Port
# Change CUSTOM_PORT to any other value, or leave it as is.
CUSTOM_PORT=28
sed -i.bak -e "s%:26658%:${CUSTOM_PORT}658%; s%:26657%:${CUSTOM_PORT}657%; s%:6060%:${CUSTOM_PORT}060%; s%:26656%:${CUSTOM_PORT}656%; s%:26660%:${CUSTOM_PORT}660%" $HOME/.warden/config/config.toml && sed -i.bak -e "s%:9090%:${CUSTOM_PORT}090%; s%:9091%:${CUSTOM_PORT}091%; s%:1317%:${CUSTOM_PORT}317%; s%:8545%:${CUSTOM_PORT}545%; s%:8546%:${CUSTOM_PORT}546%; s%:6065%:${CUSTOM_PORT}065%" $HOME/.warden/config/app.toml && sed -i.bak -e "s%:26657%:${CUSTOM_PORT}657%" $HOME/.warden/config/client.toml
sudo systemctl restart wardend
journalctl -u wardend -f -o cat
Set Indexer
sed -i 's|^indexer *=.*|indexer = "null"|' $HOME/.warden/config/config.toml
sed -i 's|^indexer *=.*|indexer = "kv"|' $HOME/.warden/config/config.toml
echo $(wardend tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.warden/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')