Service operations ⚙️
Check logs
sudo journalctl -u union -f
Start service
sudo systemctl start union
Stop service
sudo systemctl stop union
Restart service
sudo systemctl restart union
Check service status
sudo systemctl status union
Reload services
sudo systemctl daemon-reload
Enable Service
sudo systemctl enable union
Disable Service
sudo systemctl disable union
Sync info
union status 2>&1 | jq .SyncInfo
Node info
union status 2>&1 | jq .NodeInfo
Your node peer
echo $(union tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.allorad/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
union keys add $WALLET
Restore executing wallet
union keys add $WALLET --recover
List All Wallets
union keys list
Delete wallet
union keys delete $WALLET
Check Balance
union q bank balances $(union keys show $WALLET -a)
Export Key (save to wallet.backup)
union keys export $WALLET
Import Key (restore from wallet.backup)
union keys import $WALLET wallet.backup
Tokens
To valoper address
To wallet address
Amount, allo
Withdraw all rewards
union tx distribution withdraw-all-rewards --from $WALLET --chain-id allorad-testnet-1 --gas auto --gas-adjustment 1.5
Withdraw rewards and commission from your validator
union tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id allorad-testnet-1 --gas auto --gas-adjustment 1.5 -y
Check your balance
union query bank balances $WALLET_ADDRESS
Delegate to Yourself
union tx staking delegate $(union keys show $WALLET --bech val -a) 1000000allo --from $WALLET --chain-id allorad-testnet-1 --gas auto --gas-adjustment 1.5 -y
Delegate
union tx staking delegate <TO_VALOPER_ADDRESS> 1000000allo --from $WALLET --chain-id allorad-testnet-1 --gas auto --gas-adjustment 1.5 -y
Redelegate Stake to Another Validator
union tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000allo --from $WALLET --chain-id allorad-testnet-1 --gas auto --gas-adjustment 1.5 -y
Unbond
union tx staking unbond $(union keys show $WALLET --bech val -a) 1000000allo --from $WALLET --chain-id allorad-testnet-1 --gas auto --gas-adjustment 1.5 -y
Transfer Funds
union tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000allo --gas auto --gas-adjustment 1.5 -y
Validator operations
Moniker
Identity
Details
Amount, allo
Commission rate
Commission max rate
Commission max change rate
Create New Validator
union tx staking create-validator \
--amount 1000000allo \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(union tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--chain-id allorad-testnet-1 \
--gas auto --gas-adjustment 1.5 \
-y
Edit Existing Validator
union tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "I love blockchain ❤️" \
--from $WALLET \
--chain-id allorad-testnet-1 \
--gas auto --gas-adjustment 1.5 \
-y
Validator info
union status 2>&1 | jq .ValidatorInfo
Validator Details
union q staking validator $(union keys show $WALLET --bech val -a)
Jailing info
union q slashing signing-info $(union tendermint show-validator)
Slashing parameters
union q slashing params
Unjail validator
union tx slashing unjail --from $WALLET --chain-id allorad-testnet-1 --gas auto --gas-adjustment 1.5 -y
Active Validators List
union q staking validators -oj --limit=2000 | jq '.validators[] | select(.status=="BOND_STATUS_BONDED")' | jq -r '(.tokens|tonumber/pow(10; 6)|floor|tostring) + " " + .description.moniker' | sort -gr | nl
Check Validator key
[[ $(union q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(union status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
union q slashing signing-info $(union tendermint show-validator)
Governance
Title
Description
Deposit, allo
Create New Text Proposal
union tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000allo \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y
Proposals List
union query gov proposals
Proposal ID
Proposal option
View proposal
union query gov proposal 1
Vote
union tx gov vote 1 yes --from $WALLET --chain-id allorad-testnet-1 --gas auto --gas-adjustment 1.5 -y