Service operations
Check logs
Copy sudo journalctl -u althea -f
Start service
Copy sudo systemctl start althea
Stop service
Copy sudo systemctl stop althea
Restart service
Copy sudo systemctl restart althea
Check service status
Copy sudo systemctl status althea
Reload services
Copy sudo systemctl daemon-reload
Enable Service
Copy sudo systemctl enable althea
Disable Service
Copy sudo systemctl disable althea
Node info
Copy althea status 2>&1 | jq
Your node peer
Copy echo $(althea tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.althea/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')
Key management
Add New Wallet
Copy althea keys add $WALLET
Restore executing wallet
Copy althea keys add $WALLET --recover
List All Wallets
Delete wallet
Copy althea keys delete $WALLET
Check Balance
Copy althea q bank balances $WALLET_ADDRESS
Export Key (save to wallet.backup)
Copy althea keys export $WALLET
View EVM Prived Key
Copy althea keys unsafe-export-eth-key $WALLET
Import Key (restore from wallet.backup)
Copy althea keys import $WALLET wallet.backup
Tokens
WITHDRAW REWARDS FROM ALL VALIDATORS
Copy althea tx distribution withdraw-all-rewards --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
WITHDRAW COMMISSION AND REWARDS FROM YOUR VALIDATOR
Copy althea tx distribution withdraw-rewards $(althea keys show wallet --bech val -a) --commission --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
DELEGATE TOKENS TO YOURSELF
Copy althea tx staking delegate $(althea keys show wallet --bech val -a) 1000000aalthea --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
DELEGATE TOKENS TO VALIDATOR
Copy althea tx staking delegate <TO_VALOPER_ADDRESS> 1000000aalthea --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
REDELEGATE TOKENS TO ANOTHER VALIDATOR
Copy althea tx staking redelegate $(althea keys show wallet --bech val -a) <TO_VALOPER_ADDRESS> 1000000aalthea --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
UNBOND TOKENS FROM YOUR VALIDATOR
Copy althea tx staking unbond $(althea keys show wallet --bech val -a) 1000000aalthea --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
SEND TOKENS TO THE WALLET
Copy althea tx bank send wallet <TO_WALLET_ADDRESS> 1000000aalthea --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
Governance
LIST ALL PROPOSALS
Copy althea query gov proposals
VIEW PROPOSAL BY ID
Copy althea query gov proposal 1
VOTE ‘YES’
Copy althea tx gov vote 1 yes --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
VOTE ‘NO’
Copy althea tx gov vote 1 no --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
VOTE ‘ABSTAIN’
Copy althea tx gov vote 1 abstain --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
VOTE ‘NOWITHVETO’
Copy althea tx gov vote 1 NoWithVeto --from wallet --chain-id althea_258432-1 --gas-adjustment 1.4 --gas auto --gas-prices 0.002aalthea -y
Validator operations
Create New Validator
Copy althea tx staking create-validator \
--amount 1000000aalthea \
--from < yourwalle t > \
--commission-max-change-rate "0.1" \
--commission-max-rate "0.2" \
--commission-rate "0.1" \
--min-self-delegation "1" \
--pubkey $( althea tendermint show-validator ) \
--moniker $yourMONIKER \
--chain-id althea_258432-1 \
--identity= "" \
--details= "" \
--website= "" -y
Edit Existing Validator
Copy althea tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "" \
--from $WALLET \
--chain-id althea_258432-1 \
--gas auto --gas-adjustment 1.5 \
-y
Validator info
Copy althea status 2>&1 | jq
Validator Details
Copy althea q staking validator $( althea keys show $WALLET --bech val -a )
Jailing info
Copy althea q slashing signing-info $( althea tendermint show-validator )
Slashing parameters
Copy althea q slashing params
Unjail validator
Copy althea tx slashing unjail --from $WALLET --chain-id althea_258432-1 --gas auto --gas-adjustment 1.5 -y
Active Validators List
Copy althea 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 [[ $(althea q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(arkhd status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"
Signing info
Copy althea q slashing signing-info $( althea tendermint show-validator )
REMOVE NODE
Copy cd $HOME
sudo systemctl stop althea .service
sudo systemctl disable althea .service
sudo rm /etc/systemd/system/althea .service
sudo systemctl daemon-reload
rm -f $(which althea)
rm -rf $HOME/.althea
rm -rf $HOME/althea
Last updated 5 months ago