Useful commands
Service operations ⚙️
Check logs
sudo journalctl -u andromedad -fStart service
sudo systemctl start andromedadStop service
sudo systemctl stop andromedadRestart service
sudo systemctl restart andromedadCheck service status
sudo systemctl status andromedadReload services
sudo systemctl daemon-reloadEnable Service
sudo systemctl enable andromedadDisable Service
sudo systemctl disable andromedadSync info
andromedad status 2>&1 | jq .SyncInfoNode info
andromedad status 2>&1 | jq .NodeInfoYour node peer
echo $(andromedad tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.andromedad/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')Key
Add New Wallet
andromedad keys add $WALLETRestore executing wallet
andromedad keys add $WALLET --recoverList All Wallets
andromedad keys listDelete wallet
andromedad keys delete $WALLETCheck Balance
andromedad q bank balances $(andromedad keys show $WALLET -a)Export Key (save to wallet.backup)
andromedad keys export $WALLETImport Key (restore from wallet.backup)
andromedad keys import $WALLET wallet.backupTokens
Withdraw all rewards
andromedad tx distribution withdraw-all-rewards --from $WALLET --chain-id galileo-3 --gas auto --gas-adjustment 1.5Withdraw rewards and commission from your validator
andromedad tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id galileo-3 --gas auto --gas-adjustment 1.5 -yCheck your balance
andromedad query bank balances $WALLET_ADDRESSDelegate to Yourself
andromedad tx staking delegate $(andromedad keys show $WALLET --bech val -a) 1000000uandr --from $WALLET --chain-id galileo-3 --gas auto --gas-adjustment 1.5 -yDelegate
andromedad tx staking delegate <TO_VALOPER_ADDRESS> 1000000uandr --from $WALLET --chain-id galileo-3 --gas auto --gas-adjustment 1.5 -yRedelegate Stake to Another Validator
andromedad tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uandr --from $WALLET --chain-id galileo-3 --gas auto --gas-adjustment 1.5 -yUnbond
andromedad tx staking unbond $(andromedad keys show $WALLET --bech val -a) 1000000uandr --from $WALLET --chain-id galileo-3 --gas auto --gas-adjustment 1.5 -yTransfer Funds
andromedad tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uandr --gas auto --gas-adjustment 1.5 -yValidator operations
Create New Validator
andromedad tx staking create-validator \
--amount 1000000uandr \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(andromedad tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxx" \
--chain-id galileo-3 \
--gas auto --gas-adjustment 1.5 \
-yEdit Existing Validator
andromedad tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxx" \
--from $WALLET \
--chain-id galileo-3 \
--gas auto --gas-adjustment 1.5 \
-yValidator info
andromedad status 2>&1 | jq .ValidatorInfoValidator Details
andromedad q staking validator $(andromedad keys show $WALLET --bech val -a)Jailing info
andromedad q slashing signing-info $(andromedad tendermint show-validator)Unjail validator
andromedad tx slashing unjail --from $WALLET --chain-id galileo-3 --gas auto --gas-adjustment 1.5 -yActive Validators List
andromedad 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 | nlCheck Validator key
[[ $(andromedad q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(andromedad status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"Signing info
andromedad q slashing signing-info $(andromedad tendermint show-validator)Governance
Create New Text Proposal
andromedad tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uandr \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y Proposals List
andromedad query gov proposalsView proposal
andromedad query gov proposal 1Vote
andromedad tx gov vote 1 yes --from $WALLET --chain-id galileo-3 --gas auto --gas-adjustment 1.5 -yDelete Node
sudo systemctl stop andromedad
sudo systemctl disable andromedad
sudo rm -rf /etc/systemd/system/andromedad.service
sudo rm $(which andromedad)
sudo rm -rf $HOME/.andromedad
sed -i "/ANDROMEDA_/d" $HOME/.bash_profileLast updated