Skip to main content

Cheat Sheet

Wallet

Add New Wallet Key

althea keys add wallet

Recover existing key

althea keys add wallet --recover

List All Keys

althea keys list

Query Wallet Balance

althea q bank balances $(althea keys show wallet -a)

Check sync status

althea status 2>&1 | jq .sync_info.catching_up

Create Validator

Change your info "your_info"

althea tx staking create-validator <(cat <<EOF
{
"pubkey": $(althea tendermint show-validator),
"amount": "1000000akii",
"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 althea_7357-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0ualthea \
-y

Edit Existing Validator

althea tx staking edit-validator \
--new-moniker="" \
--identity="" \
--website="" \
--details="" \
--from wallet \
--chain-id althea_7357-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0ualthea \
-y

Delegate Token to your own validator

althea tx staking delegate $(altheakeys show wallet --bech val -a) 1000000000ualthea \
--from wallet \
--chain-id althea_7357-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0ualthea \
-y

Withdraw All

althea tx distribution withdraw-all-rewards --from wallet \
--from wallet \
--chain-id althea_7357-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0ualthea \
-y

Withdraw Rewards with Comission

althea tx distribution withdraw-rewards $(althea keys show wallet --bech val -a) \
--commission \
--from wallet \
--chain-id althea_7357-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0ualthea \
-y

Unjail validator

althea tx slashing unjail \
--from wallet \
--chain-id althea_7357-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0ualthea \
-y

Vote

althea tx gov vote 18 yes \
--from wallet \
--chain-id althea_7357-1 \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0ualthea \
-y

Services Management

# Reload Service
sudo systemctl daemon-reload

# Enable Service
sudo systemctl enable althead

# Disable Service
sudo systemctl disable althead

# Start Service
sudo systemctl start althead

# Stop Service
sudo systemctl stop althead

# Restart Service
sudo systemctl restart althead

# Check Service Status
sudo systemctl status althead

# Check Service Logs
sudo journalctl -u althead -f --no-hostname -o cat

Backup Validator

cat $HOME/.althea/config/priv_validator_key.json

Remove node

cd $HOME && sudo systemctl stop althea
sudo systemctl disable althea
sudo rm /etc/systemd/system/althead.service
sudo systemctl daemon-reload
rm -f $(which althea)
rm -rf .althea
rm -rf althea