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