Useful Commands/
testnet/
union

testnet
Rpc status: Active

Service operations

#check logs
sudo journalctl -u uniond -f

#start service
sudo systemctl start uniond

#stop service
sudo systemctl stop uniond

#restart service
sudo systemctl restart uniond

#service status
sudo systemctl status uniond

#enable service
sudo systemctl enable uniond

#disable service
sudo systemctl disable uniond

#reload all service files
sudo systemctl daemon-reload

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

#get node id
uniond tendermint show-node-id

Key management

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

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

#delete wallet
uniond keys delete <wallet-name>

#list all wallets
uniond keys list

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

Tokens operations

#withdraw all rewards
uniond tx distribution withdraw-all-rewards --from <wallet-name> --chain-id union-testnet-9 --gas auto --gas-adjustment 1.5 --gas-prices 0.025muno --node "https://rpc.union.testnet.dteam.tech:443" -y

#withdraw rewards from specific validator
uniond tx distribution withdraw-rewards <validator-valoper-address> --from <wallet-name> --chain-id union-testnet-9 --gas auto --gas-adjustment 1.5 --gas-prices 0.025muno --node "https://rpc.union.testnet.dteam.tech:443" -y

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

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

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

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

Governance operations

#vote "yes"
uniond tx gov vote <proposal-id> yes --from <wallet-name> --chain-id union-testnet-9 --gas auto --gas-adjustment 1.5 --gas-prices 0.025muno --node "https://rpc.union.testnet.dteam.tech:443" -y

#vote "no"
uniond tx gov vote <proposal-id> no --from <wallet-name> --chain-id union-testnet-9 --gas auto --gas-adjustment 1.5 --gas-prices 0.025muno --node "https://rpc.union.testnet.dteam.tech:443" -y

#vote "no with veto"
uniond tx gov vote <proposal-id> no_with_veto --from <wallet-name> --chain-id union-testnet-9 --gas auto --gas-adjustment 1.5 --gas-prices 0.025muno --node "https://rpc.union.testnet.dteam.tech:443" -y

#vote "abstain"
uniond tx gov vote <proposal-id> abstain --from <wallet-name> --chain-id union-testnet-9 --gas auto --gas-adjustment 1.5 --gas-prices 0.025muno --node "https://rpc.union.testnet.dteam.tech:443" -y

#view all proposals
uniond query gov proposals

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

Validator operations

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

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

#unjail validator
uniond tx slashing unjail --from <wallet-name> --chain-id union-testnet-9 --gas auto --gas-adjustment 1.5 --gas-prices 0.025muno --node "https://rpc.union.testnet.dteam.tech:443" -y