Useful Commands/
testnet/
warden

testnet
Rpc status: Active

Service operations

#check logs
sudo journalctl -u wardend -f

#start service
sudo systemctl start wardend

#stop service
sudo systemctl stop wardend

#restart service
sudo systemctl restart wardend

#service status
sudo systemctl status wardend

#enable service
sudo systemctl enable wardend

#disable service
sudo systemctl disable wardend

#reload all service files
sudo systemctl daemon-reload

#get node info
wardend status 2>&1 | jq -r

#get node id
wardend tendermint show-node-id

Key management

#add new wallet
wardend keys add <wallet-name>

#restore existing wallet
wardend keys add <wallet-name> --recover

#delete wallet
wardend keys delete <wallet-name>

#list all wallets
wardend keys list

#check balance
wardend q bank balances <wallet-address>

Tokens operations

#withdraw all rewards
wardend tx distribution withdraw-all-rewards --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#withdraw rewards from specific validator
wardend tx distribution withdraw-rewards <validator-valoper-address> --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#delegate
wardend tx staking delegate <validator-valoper-address> ${10**network.other.denom_exponent}uward --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#redelegate
wardend tx staking redelegate <from-validator-valoper-address> <to-validator-valoper-address> ${10**network.other.denom_exponent}uward --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#unbond
wardend tx staking unbond <validator-valoper-address> ${10**network.other.denom_exponent}uward --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#transfer
wardend tx bank send <wallet-name> <wallet-address> ${10**network.other.denom_exponent}uward --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

Governance operations

#vote "yes"
wardend tx gov vote <proposal-id> yes --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#vote "no"
wardend tx gov vote <proposal-id> no --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#vote "no with veto"
wardend tx gov vote <proposal-id> no_with_veto --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#vote "abstain"
wardend tx gov vote <proposal-id> abstain --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y

#view all proposals
wardend query gov proposals

#view proposal by ID
wardend query gov proposal <proposal-id>

Validator operations

#create validator
wardend tx staking create-validator \
--amount 1000000uward \
--moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--pubkey $(wardend tendermint show-validator) \
--commission-rate 0.05 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--chain-id chiado_10010-1 \
--from <wallet-name> \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 0.025uward \
--node "https://rpc.warden.testnet.dteam.tech:443" \
-y

#edit validator
wardend tx staking edit-validator \
--new-moniker "" \
--identity "" \
--details "" \
--website "" \
--security-contact "" \
--commission-rate 0.05 \
--chain-id chiado_10010-1 \
--from <wallet-name> \
--gas auto \
--gas-adjustment 1.5 \
--gas-prices 0.025uward \
--node "https://rpc.warden.testnet.dteam.tech:443" \
-y

#unjail validator
wardend tx slashing unjail --from <wallet-name> --chain-id chiado_10010-1 --gas auto --gas-adjustment 1.5 --gas-prices 0.025uward --node "https://rpc.warden.testnet.dteam.tech:443" -y