Useful commands
Last updated
terpd status 2>&1 | jq .SyncInfoterpd status 2>&1 | jq .NodeInfoecho $(terpd tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.terp/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')terpd keys add $WALLETterpd keys add $WALLET --recoverterpd keys listterpd keys delete $WALLETterpd q bank balances $(terpd keys show $WALLET -a)terpd keys export $WALLETterpd keys import $WALLET wallet.backupterpd tx distribution withdraw-all-rewards --from $WALLET --chain-id morocco-1 terpd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id morocco-1 -yterpd query bank balances $WALLET_ADDRESSterpd tx staking delegate $(terpd keys show $WALLET --bech val -a) 1000000uterp --from $WALLET --chain-id morocco-1 -yterpd tx staking delegate <TO_VALOPER_ADDRESS> 1000000uterp --from $WALLET --chain-id morocco-1 -yterpd tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uterp --from $WALLET --chain-id morocco-1 -yterpd tx staking unbond $(terpd keys show $WALLET --bech val -a) 1000000uterp --from $WALLET --chain-id morocco-1 -yterpd tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000uterp -yterpd tx staking create-validator \
--amount 1000000uterp \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(terpd tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxx" \
--chain-id morocco-1 \
\
-yterpd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxx" \
--from $WALLET \
--chain-id morocco-1 \
\
-yterpd status 2>&1 | jq .ValidatorInfoterpd q staking validator $(terpd keys show $WALLET --bech val -a)terpd q slashing signing-info $(terpd tendermint show-validator)terpd tx slashing unjail --broadcast-mode block --from $WALLET --chain-id morocco-1 -yterpd 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[[ $(terpd q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(terpd status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"terpd q slashing signing-info $(terpd tendermint show-validator)terpd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uterp \
--type Text \
--from $WALLET \
\
-y terpd query gov proposalsterpd query gov proposal 1terpd tx gov vote 1 yes --from $WALLET --chain-id morocco-1 -ysudo systemctl stop terpd
sudo systemctl disable terpd
sudo rm -rf /etc/systemd/system/terpd.service
sudo rm $(which terpd)
sudo rm -rf $HOME/.terp
sed -i "/TERP_/d" $HOME/.bash_profile