Skip to main content

lavad reference

A collection of useful commands for the lavad binary.

Lavad version and upgrades

Check the lavad version:

lavad --version

Upgrade the lavad version:

# Get the preferred lavad version:
git clone https://github.com/lavanet/lava.git
cd lava
git checkout v5.2.0

# Install the binary
export LAVA_BINARY=lavad
make build

Key management

List keys:

lavad keys list

Add new key:

ACCOUNT_NAME="account_name_here"
lavad keys add $ACCOUNT_NAME

Recover existing key:

ACCOUNT_NAME="account_name_here"
lavad keys add $ACCOUNT_NAME --recover

Check wallet balance:

YOUR_ADDRESS=$(lavad keys show -a $ACCOUNT_NAME)
lavad q bank balances $(lavad keys show $YOUR_ADDRESS -a)

Validator management

Create new validator

lavad tx staking create-validator

Update existing validator

lavad tx staking edit-validator

Maintenance

Check sync status:

lavad status | jq .SyncInfo.catching_up