Useful commands
Service operations ⚙️
Check logs
sudo journalctl -u saod -fStart service
sudo systemctl start saodStop service
sudo systemctl stop saodRestart service
sudo systemctl restart saodCheck service status
sudo systemctl status saodReload services
sudo systemctl daemon-reloadEnable Service
sudo systemctl enable saodDisable Service
sudo systemctl disable saodSync info
saod status 2>&1 | jq .SyncInfoNode info
saod status 2>&1 | jq .NodeInfoYour node peer
echo $(saod tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.sao/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')Key management
Add New Wallet
saod keys add $WALLETRestore executing wallet
saod keys add $WALLET --recoverList All Wallets
saod keys listDelete wallet
saod keys delete $WALLETCheck Balance
saod q bank balances $(mantrachaind keys show $WALLET -a)Export Key (save to wallet.backup)
saod keys export $WALLETImport Key (restore from wallet.backup)
saod keys import $WALLET wallet.backupValidator operations
Create New Validator
saod tx staking create-validator \
--amount=1000000usct \
--pubkey=$(saod tendermint show-validator) \
--chain-id=sao-20230629 \
--commission-rate="0.10" \
--commission-max-rate="0.20" \
--commission-max-change-rate="0.20" \
--min-self-delegation=1 \
--from mykey \
--moniker="*YourMonikerName*" \
--gas="2000000" \
--gas-prices="0.0025usct" \
--yesEdit Existing Validator
saod tx staking edit-validator \
--commission-rate 0.10 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxx" \
--from $WALLET \
--chain-id sao-20230629 \
--gas auto --gas-adjustment 1.5 \
-yValidator info
saod status 2>&1 | jq .ValidatorInfoValidator Details
saod q staking validator $(saod keys show $WALLET --bech val -a)Jailing info
saod q slashing signing-info $(saod tendermint show-validator)Unjail validator
saod tx slashing unjail --from $WALLET --chain-id sao-20230629 --gas auto --gas-adjustment 1.5 -yActive Validators List
saod 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
[[ $(saod q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(mantrachaind status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"Signing info
saod q slashing signing-info $(mantrachaind tendermint show-validator)Delete Node
sudo systemctl stop saod
sudo systemctl disable saod
sudo rm -rf /etc/systemd/system/saod.service
sudo rm $(which saod)
sudo rm -rf $HOME/.sao
sed -i "/SAO_/d" $HOME/.bash_profileLast updated