Service operations ⚙️
Check logs
Copy sudo journalctl -u terpd -f
Start service
Copy sudo systemctl start terpd
Stop service
Copy sudo systemctl stop terpd
Restart service
Copy sudo systemctl restart terpd
Check service status
Copy sudo systemctl status terpd
Reload services
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable terpd
Disable Service
Copy sudo systemctl disable terpd
Sync info
Copy terpd status 2>&1 | jq .SyncInfo
Node info
Copy terpd status 2>&1 | jq .NodeInfo
Your node peer
Copy echo $(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/".*//')
Key management
Add New Wallet
Copy terpd keys add $WALLET
Restore executing wallet
Copy terpd keys add $WALLET --recover
List All Wallets
Delete wallet
Copy terpd keys delete $WALLET
Check Balance
Copy terpd q bank balances $( terpd keys show $WALLET -a )
Export Key (save to wallet.backup)
Copy terpd keys export $WALLET
Import Key (restore from wallet.backup)
Copy terpd keys import $WALLET wallet.backup
Tokens
Withdraw all rewards
Copy terpd tx distribution withdraw-all-rewards --from $WALLET --chain-id 90u-2 --gas auto --gas-adjustment 1.5
Withdraw rewards and commission from your validator
Copy terpd tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id 90u-2 --gas auto --gas-adjustment 1.5 -y
Check your balance
Copy terpd query bank balances $WALLET_ADDRESS
Delegate to Yourself
Copy terpd tx staking delegate $(terpd keys show $WALLET --bech val -a) 1000000uterpx --from $WALLET --chain-id 90u-2 --gas auto --gas-adjustment 1.5 -y
Delegate
Copy terpd tx staking delegate <TO_VALOPER_ADDRESS> 1000000uterpx --from $WALLET --chain-id 90u-2 --gas auto --gas-adjustment 1.5 -y
Redelegate Stake to Another Validator
Copy terpd tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000uterpx --from $WALLET --chain-id 90u-2 --gas auto --gas-adjustment 1.5 -y
Unbond
Copy terpd tx staking unbond $(terpd keys show $WALLET --bech val -a) 1000000uterpx --from $WALLET --chain-id 90u-2 --gas auto --gas-adjustment 1.5 -y
Transfer Funds
Copy terpd tx bank send $WALLET_ADDRESS < TO_WALLET_ADDRES S > 1000000uterpx --gas auto --gas-adjustment 1.5 -y
Validator operations
Create New Validator
Copy terpd tx staking create-validator \
--amount 1000000uterpx \
--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 "xxxxxxxxxxxxx" \
--chain-id 90u-2 \
--gas auto --gas-adjustment 1.5 \
-y
Edit Existing Validator
Copy terpd tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxxx" \
--from $WALLET \
--chain-id 90u-2 \
--gas auto --gas-adjustment 1.5 \
-y
Validator info
Copy terpd status 2>&1 | jq .ValidatorInfo
Validator Details
Copy terpd q staking validator $( terpd keys show $WALLET --bech val -a )
Jailing info
Copy terpd q slashing signing-info $( terpd tendermint show-validator )
Unjail validator
Copy terpd tx slashing unjail --from $WALLET --chain-id 90u-2 --gas auto --gas-adjustment 1.5 -y
Active Validators List
Copy terpd 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
Copy [[ $(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"
Signing info
Copy terpd q slashing signing-info $( terpd tendermint show-validator )
Governance
Create New Text Proposal
Copy terpd tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000uterpx \
--type Text \
--from $WALLET \
--gas auto --gas-adjustment 1.5 \
-y
Proposals List
Copy terpd query gov proposals
Proposal IDProposal optionYesNoNo with vetoAbstain
View proposal
Copy terpd query gov proposal 1
Vote
Copy terpd tx gov vote 1 yes --from $WALLET --chain-id 90u-2 --gas auto --gas-adjustment 1.5 -y
Delete Node
Copy sudo 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
Last updated 8 months ago