Setting up your validator node has never been so easy. Get your validator running in minutes by following step by step instructions.

Chain ID: lava-testnet-1 | Latest Version Tag: v0.15.1 | Custom Port: 44

Setup validator name

Replace YOUR_MONIKER with your validator name


Install dependencies

Update system and install build tools

sudo apt -q update
sudo apt -qy install curl git jq lz4 build-essential
sudo apt -qy upgrade

Install Go

sudo rm -rf /usr/local/go
curl -Ls | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)

Download and build binaries

# Clone project repository
cd $HOME
rm -rf lava
git clone
cd lava
git checkout v0.15.1

# Install binaries
make install

Create a service

# Create service
sudo tee /etc/systemd/system/lavad.service > /dev/null <<EOF
ExecStart=$(which lavad) start

sudo systemctl daemon-reload
sudo systemctl enable lavad

Initialize the node

# Set node configuration
lavad config chain-id lava-testnet-1
lavad config keyring-backend test

# Initialize the node
lavad init $MONIKER --chain-id lava-testnet-1

# Download genesis and addrbook
curl -Ls > $HOME/.lava/config/genesis.json
curl -Ls > $HOME/.lava/config/addrbook.json

# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"\"|" $HOME/.lava/config/config.toml

# Set minimum gas price
sed -i -e "s|^minimum-gas-prices *=.*|minimum-gas-prices = \"0ulava\"|" $HOME/.lava/config/app.toml

# Set pruning
sed -i \
  -e 's|^pruning *=.*|pruning = "custom"|' \
  -e 's|^pruning-keep-recent *=.*|pruning-keep-recent = "100"|' \
  -e 's|^pruning-keep-every *=.*|pruning-keep-every = "0"|' \
  -e 's|^pruning-interval *=.*|pruning-interval = "19"|' \

# Set custom ports
sed -i -e "s%^proxy_app = \"tcp://\"%proxy_app = \"tcp://\"%; s%^laddr = \"tcp://\"%laddr = \"tcp://\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:44060\"%; s%^laddr = \"tcp://\"%laddr = \"tcp://\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":44660\"%" $HOME/.lava/config/config.toml
sed -i -e "s%^address = \"tcp://\"%address = \"tcp://\"%; s%^address = \":8080\"%address = \":44080\"%; s%^address = \"\"%address = \"\"%; s%^address = \"\"%address = \"\"%; s%^address = \"\"%address = \"\"%; s%^ws-address = \"\"%ws-address = \"\"%" $HOME/.lava/config/app.toml

Update chain specific configuration

sed -i 's/create_empty_blocks = .*/create_empty_blocks = true/g' $HOME/.lava/config/config.toml
sed -i 's/create_empty_blocks_interval = ".*s"/create_empty_blocks_interval = "60s"/g' $HOME/.lava/config/config.toml
sed -i 's/timeout_propose = ".*s"/timeout_propose = "60s"/g' $HOME/.lava/config/config.toml
sed -i 's/timeout_commit = ".*s"/timeout_commit = "60s"/g' $HOME/.lava/config/config.toml
sed -i 's/timeout_broadcast_tx_commit = ".*s"/timeout_broadcast_tx_commit = "601s"/g' $HOME/.lava/config/config.toml

Start service and check the logs

sudo systemctl start lavad && sudo journalctl -u lavad -f --no-hostname -o cat

Last updated