Useful commands
Service operations ⚙️
Check logs
sudo journalctl -u lavad -fStart service
sudo systemctl start lavadStop service
sudo systemctl stop lavadRestart service
sudo systemctl restart lavadCheck service status
sudo systemctl status lavadReload services
sudo systemctl daemon-reloadEnable Service
sudo systemctl enable lavadDisable Service
sudo systemctl disable lavadSync info
lavad status 2>&1 | jq .SyncInfoNode info
lavad status 2>&1 | jq .NodeInfoYour node peer
echo $(lavad tendermint show-node-id)'@'$(wget -qO- eth0.me)':'$(cat $HOME/.lava/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')Key management
Add New Wallet
lavad keys add $WALLETRestore executing wallet
lavad keys add $WALLET --recoverList All Wallets
lavad keys listDelete wallet
lavad keys delete $WALLETCheck Balance
lavad q bank balances $(lavad keys show $WALLET -a)Export Key (save to wallet.backup)
lavad keys export $WALLETImport Key (restore from wallet.backup)
lavad keys import $WALLET wallet.backupTokens
Withdraw all rewards
lavad tx distribution withdraw-all-rewards --from $WALLET --chain-id lava-testnet-2 --fees 300ulavaWithdraw rewards and commission from your validator
lavad tx distribution withdraw-rewards $VALOPER_ADDRESS --from $WALLET --commission --chain-id lava-testnet-2 --fees 300ulava -yCheck your balance
lavad query bank balances $WALLET_ADDRESSDelegate to Yourself
lavad tx staking delegate $(lavad keys show $WALLET --bech val -a) 1000000ulava --from $WALLET --chain-id lava-testnet-2 --fees 300ulava -yDelegate
lavad tx staking delegate <TO_VALOPER_ADDRESS> 1000000ulava --from $WALLET --chain-id lava-testnet-2 --fees 300ulava -yRedelegate Stake to Another Validator
lavad tx staking redelegate $VALOPER_ADDRESS <TO_VALOPER_ADDRESS> 1000000ulava --from $WALLET --chain-id lava-testnet-2 --fees 300ulava -yUnbond
lavad tx staking unbond $(lavad keys show $WALLET --bech val -a) 1000000ulava --from $WALLET --chain-id lava-testnet-2 --fees 300ulava -yTransfer Funds
lavad tx bank send $WALLET_ADDRESS <TO_WALLET_ADDRESS> 1000000ulava --fees 300ulava -yValidator operations
Create New Validator
lavad tx staking create-validator \
--amount 1000000ulava \
--from $WALLET \
--commission-rate 0.1 \
--commission-max-rate 0.2 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--pubkey $(lavad tendermint show-validator) \
--moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxxx" \
--chain-id lava-testnet-2 \
--fees 300ulava \
-yEdit Existing Validator
lavad tx staking edit-validator \
--commission-rate 0.1 \
--new-moniker "$MONIKER" \
--identity "" \
--details "xxxxxxxxxx" \
--from $WALLET \
--chain-id lava-testnet-2 \
--fees 300ulava \
-yValidator info
lavad status 2>&1 | jq .ValidatorInfoValidator Details
lavad q staking validator $(lavad keys show $WALLET --bech val -a)Jailing info
lavad q slashing signing-info $(lavad tendermint show-validator)Unjail validator
lavad tx slashing unjail --from $WALLET --chain-id lava-testnet-2 --fees 300ulava -yActive Validators List
lavad 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 | nlCheck Validator key
[[ $(lavad q staking validator $VALOPER_ADDRESS -oj | jq -r .consensus_pubkey.key) = $(lavad status | jq -r .ValidatorInfo.PubKey.value) ]] && echo -e "Your key status is ok" || echo -e "Your key status is error"Signing info
lavad q slashing signing-info $(lavad tendermint show-validator)Governance
Create New Text Proposal
lavad tx gov submit-proposal \
--title "" \
--description "" \
--deposit 1000000ulava \
--type Text \
--from $WALLET \
--fees 300ulava \
-y Proposals List
lavad query gov proposalsProposal ID
View proposal
lavad query gov proposal 1Vote
lavad tx gov vote 1 yes --from $WALLET --chain-id lava-testnet-2 --fees 300ulava -yDelete Node
sudo systemctl stop lavad
sudo systemctl disable lavad
sudo rm -rf /etc/systemd/system/lavad.service
sudo rm $(which lavad)
sudo rm -rf $HOME/.lava
sed -i "/LAVA_/d" $HOME/.bash_profileLast updated