Cheat Sheet
Wallet
Add New Wallet Key
terrad keys add wallet
Recover existing key
terrad keys add wallet --recover
List All Keys
terrad keys list
Query Wallet Balance
terrad q bank balances $(terrad keys show wallet -a)
Check sync status
terrad status 2>&1 | jq .sync_info.catching_up
Create Validator
Change your info "your_info"
terrad tx staking create-validator <(cat <<EOF
{
"pubkey": $(terrad tendermint show-validator),
"amount": "1000000uluna",
"moniker": "Your_moniker",
"identity": "YOUR_KEYBASE_ID",
"website": "YOUR_WEBSITE_URL",
"security-contact": "YOUR_SECURITY_EMAIL",
"details": "YOUR_DETAILS",
"commission-rate": "0.05",
"commission-max-rate": "0.20",
"commission-max-change-rate": "0.05",
"min-self-delegation": "1"
}
EOF
) \
--from wallet \
--chain-id phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y
Edit Existing Validator
terrad tx staking edit-validator \
--new-moniker="" \
--identity="" \
--website="" \
--details="" \
--from wallet \
--chain-id phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y
Delegate Token to your own validator
terrad tx staking delegate $(terrad keys show wallet --bech val -a) 1000000000uluna \
--from wallet \
--chain-id phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y
Withdraw All
terrad tx distribution withdraw-all-rewards --from wallet \
--from wallet \
--chain-id phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y
Withdraw Rewards with Comission
terrad tx distribution withdraw-rewards $(terrad keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y
Unjail validator
terrad tx slashing unjail \
--from wallet \
--chain-id phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y
Vote
terrad tx gov vote 18 yes \
--from wallet \
--chain-id phoenix-1 \
--fees 40000uluna \
--gas=auto \
--gas-adjustment=1.3 \
-y
Services Management
# Reload Service
sudo systemctl daemon-reload
# Enable Service
sudo systemctl enable terrad
# Disable Service
sudo systemctl disable terrad
# Start Service
sudo systemctl start terrad
# Stop Service
sudo systemctl stop terrad
# Restart Service
sudo systemctl restart terrad
# Check Service Status
sudo systemctl status terrad
# Check Service Logs
sudo journalctl -u terrad -f --no-hostname -o cat
Backup Validator
cat $HOME/.terra/config/priv_validator_key.json
Remove node
cd $HOME && sudo systemctl stop terrad
sudo systemctl disable terrad
sudo rm /etc/systemd/system/terrad.service
sudo systemctl daemon-reload
rm -f $(which terrad)
rm -rf .terra
rm -rf terra