VALIDEXIS Services
  • 👋 About US
  • 🌐 Supported Networks
  • 🌍 Our Validators
  • 🔐 Validator Security: Our Approach and Protection Measures
    • 🔒Enhancing SSH Security for a Validator
    • 📡 TMKMS for Remote Signing
    • 🔑 Horcrux
    • 🛡️ Protecting Validator from DDoS Attacks
    • 🧩Multi-Factor Authentication (MFA) for a Validator
  • 🚨Monitoring
    • 📊 Node-exporter + Prometheus + Grafana
    • 🕵️ TenderDuty for Node Monitoring
  • 🧵 Setting up connection to IBC with Hermes
  • 🤖CelestiaUltraBot
    • 🏆 Contest
    • 🚀 Getting started
    • 🖥️ Validator monitoring
    • 🔍 Bridge Node Monitoring
    • 👛 Wallet
    • 🛸 AI Troubleshooting
  • 🟢 MAINNETS
    • Celestia
      • 🗂️ API/RPC/gRPC/AddrBook
      • 📸 Snapshot
      • 🔗 Validator Node Installation
        • 🛠️ Upgrade
        • 📜 Useful Commands
      • 💾 Full Node Installation
        • 🛠️ Upgrade
        • 📜 Useful Commands
      • 🌉 Bridge Node Installation
        • 🛠️ Upgrade
        • 📜 Useful Commands
      • 💡 Light Node Installation
        • 🛠️ Upgrade
        • 📜 Useful Commands
    • Zetachain
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Xion
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Nibiru
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Kyve
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Juno
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Agoric
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • CosmosHub
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Lava
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Uptick
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Paloma
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Kusama
      • 🗂️ API/RPC
      • 📸 Snapshot
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • Polkadot
      • 🗂️ API/RPC
      • 📸 Snapshot
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
      • 🔧 Installing a Polkadot Node Using Kagome
      • 🧪 Benchmarking a Server for Substrate/Polkadot
      • 📘 Monitoring Polkadot Nodes with Prometheus and Alertmanager
      • 🔐 UFW Security Template
    • Starknet
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
    • NYM
      • ⚙️ Installation
      • 🛠️ Upgrade
      • 📜 Useful Commands
  • 🟡 TESTNETS
    • Celestia
      • 🗂️ API/RPC/AddrBook
      • 📸 Snapshot
      • 🔗 Validator Node Installation
        • 🛠️ Upgrade
        • 📜 Useful Commands
      • 💾 Full Node Installation
        • 🛠️ Upgrade
        • 📜 Useful Commands
      • 🌉 Bridge Node Installation
        • 🛠️ Upgrade
        • 📜 Useful Commands
      • 💡 Light Node Installation
        • 🛠️ Upgrade
        • 📜 Useful Commands
Powered by GitBook
On this page
  • Automatic Installation
  • Manual Installation
  1. 🟢 MAINNETS
  2. Lava

⚙️ Installation

Chain ID: lava-mainnet-1 | Node Version: v5.3.0 | Custom Port: 168

Recommended Hardware:

Node Type
CPU
RAM
Storage

Mainnet

8

16GB

250GB

Install dependencies

# Update the repositories
sudo apt update && sudo apt upgrade -y
# Install developer packages
sudo apt install -y curl git jq lz4 build-essential
# Install Go
sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.23.6.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
eval $(echo 'export PATH=$PATH:/usr/local/go/bin' | sudo tee /etc/profile.d/golang.sh)
eval $(echo 'export PATH=$PATH:$HOME/go/bin' | tee -a $HOME/.profile)
echo "export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin" >> $HOME/.bash_profile
source $HOME/.bash_profile
go version

Automatic Installation

source <(curl -s https://raw.githubusercontent.com/validexisinfra/Lava/main/installmain.sh)

Manual Installation

# Come up with the name of your node and replace it instead <your_moniker>
MONIKER=<your_moniker>
# Download binary files
cd $HOME
rm -rf lava
git clone https://github.com/lavanet/lava.git
cd lava
git checkout v5.3.0
make install-all
# Set node configuration
lavad config chain-id lava-mainnet-1
lavad config keyring-backend file
lavad config node tcp://localhost:26657

# Initialize the node
lavad init $MONIKER --chain-id lava-mainnet-1
# Download genesis and addrbook
curl -Ls https://snapshots.kjnodes.com/lava/genesis.json > $HOME/.lava/config/genesis.json
curl -Ls https://snapshots.kjnodes.com/lava/addrbook.json > $HOME/.lava/config/addrbook.json

Setup config

# Add seeds
sed -i -e "s|^seeds *=.*|seeds = \"ebacd3e666003397fb685cd44956d33419219950@seed2.lava.chainlayer.net:26656,1105d3a3384edaa450f4f63c2b1ff08d366ee256@159.203.86.102:26656,f1caeaacfac32e4dd00916e8d912e1d834e94eb3@lava-seed.stakecito.com:26666,e4eb68c6fdfab1575b8794205caed47d4f737df4@lava-mainnet-seed.01node.com:26107,2d4db6b95804ea97e1f3655d043e6becf9bffc94@lava-seeds2.w3coins.io:11156,dcbfb490ea930fe9e8058089e3f6a14ca274c1c4@217.182.136.79:26656,e023c3892862744081360a99a2666e8111b196d3@38.242.213.53:26656,eafff29ec471bdd0985a9360b2c103997539c939@lava-seed.node.monster:26649,6a9a65d92b4820a5d198dd95743aa3059d0d3d4c@seed-lava.hashkey.cloud:26656\"|" $HOME/.lava/config/config.toml

# Add peers
peers="159a27880fe8704f44c307b18404061d46b77083@162.19.95.240:15656,0d6aed3038c55387f5b7c8fb1e702545358213ea@65.109.78.246:37656,0d67bedc7f929200d52c8724dfc50f848661f9ba@65.109.69.119:28656,f978474e77246a3635340d3bdb8dc14cb28d5ba0@188.214.129.218:26656,4008607a63c61e23bb74dfa613f93f9d178f5bd8@54.38.12.103:26656,d9bfa29e0cf9c4ce0cc9c26d98e5d97228f93b0b@65.108.233.103:14456,03c935c903ec7620d8e653fd179d5aa927888a09@136.243.55.115:40004,9d6216e9d79dc73247336ea18b928af9c9544e4f@51.210.223.80:19956,91971680907af210c45bf3618046314225a2629f@176.103.222.58:26656"
sed -i -e "s|^persistent_peers *=.*|persistent_peers = \"$peers\"|" $HOME/.lava/config/config.toml


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

# Settings
sed -i \
-e 's/timeout_propose = .*/timeout_propose = "1s"/' \
-e 's/timeout_propose_delta = .*/timeout_propose_delta = "500ms"/' \
-e 's/timeout_prevote = .*/timeout_prevote = "1s"/' \
-e 's/timeout_prevote_delta = .*/timeout_prevote_delta = "500ms"/' \
-e 's/timeout_precommit = .*/timeout_precommit = "500ms"/' \
-e 's/timeout_precommit_delta = .*/timeout_precommit_delta = "1s"/' \
-e 's/timeout_commit = .*/timeout_commit = "15s"/' \
-e 's/^create_empty_blocks = .*/create_empty_blocks = true/' \
-e 's/^create_empty_blocks_interval = .*/create_empty_blocks_interval = "15s"/' \
-e 's/^timeout_broadcast_tx_commit = .*/timeout_broadcast_tx_commit = "151s"/' \
-e 's/skip_timeout_commit = .*/skip_timeout_commit = false/' \
$HOME/.lava/config/config.toml

# Config pruning
sed -i -e "s/^pruning *=.*/pruning = \"custom\"/" $HOME/.lava/config/app.toml 
sed -i -e "s/^pruning-keep-recent *=.*/pruning-keep-recent = \"100\"/" $HOME/.lava/config/app.toml
sed -i -e "s/^pruning-interval *=.*/pruning-interval = \"19\"/" $HOME/.lava/config/app.toml

Set custom ports

You can change value CUSTOM_PORT=168 To any other ports

CUSTOM_PORT=168
sed -i -e "s%^proxy_app = \"tcp://127.0.0.1:26658\"%proxy_app = \"tcp://127.0.0.1:${CUSTOM_PORT}58\"%; s%^laddr = \"tcp://127.0.0.1:26657\"%laddr = \"tcp://127.0.0.1:${CUSTOM_PORT}57\"%; s%^pprof_laddr = \"localhost:6060\"%pprof_laddr = \"localhost:${CUSTOM_PORT}60\"%; s%^laddr = \"tcp://0.0.0.0:26656\"%laddr = \"tcp://0.0.0.0:${CUSTOM_PORT}56\"%; s%^prometheus_listen_addr = \":26660\"%prometheus_listen_addr = \":${CUSTOM_PORT}66\"%" $HOME/.lava/config/config.toml
sed -i -e "s%^address = \"tcp://localhost:1317\"%address = \"tcp://localhost:${CUSTOM_PORT}17\"%; s%^address = \":8080\"%address = \":${CUSTOM_PORT}80\"%; s%^address = \"localhost:9090\"%address = \"localhost:${CUSTOM_PORT}90\"%; s%^address = \"localhost:9091\"%address = \"localhost:${CUSTOM_PORT}91\"%; s%^address = \"0.0.0.0:8545\"%address = \"0.0.0.0:${CUSTOM_PORT}45\"%; s%^ws-address = \"0.0.0.0:8546\"%ws-address = \"0.0.0.0:${CUSTOM_PORT}46\"%" $HOME/.lava/config/app.toml
#Set config with new custom port
lavad config node tcp://localhost:${CUSTOM_PORT}57
# Create service file
sudo tee /etc/systemd/system/lavad.service > /dev/null <<EOF
[Unit]
Description=Lava node
After=network-online.target

[Service]
User=$USER
WorkingDirectory=$HOME/.lava
ExecStart=$(which lavad) start --home $HOME/.lava
Restart=on-failure
RestartSec=5
LimitNOFILE=65535

[Install]
WantedBy=multi-user.target
EOF
# Download latest chain snapshot
curl -L https://snapshots.kjnodes.com/lava/snapshot_latest.tar.lz4 | tar -Ilz4 -xf - -C $HOME/.lava
# Enable and start service
sudo systemctl daemon-reload
sudo systemctl enable lavad
sudo systemctl start lavad && sudo journalctl -u lavad -f --no-hostname -o cat
# Check status
lavad status 2>&1 | jq .SyncInfo

#"catching_up": false means that the node is synchronized, we are waiting for complete synchronization

Wallets

# Create wallet
lavad keys add wallet

The wallet has been created. In the last line there will be a phrase that must be written down

# If the wallet was already there, restore it
lavad keys add wallet --recover

# Insert the seed phrase from your wallet
# If everything is correct, you will see your wallet data

Validator

Do not forget to create a profile on https://keybase.io/ and set a profile photo there that will be imported by key and used for your validators.

lavad tx staking create-validator \
--amount 1000000ulava \
--pubkey $(lavad tendermint show-validator) \
--moniker "YOUR_MONIKER_NAME" \
--identity "YOUR_KEYBASE_ID" \
--details "YOUR_DETAILS" \
--website "YOUR_WEBSITE_URL" \
--chain-id lava-mainnet-1 \
--commission-rate 0.05 \
--commission-max-rate 0.20 \
--commission-max-change-rate 0.01 \
--min-self-delegation 1 \
--from wallet \
--gas-adjustment 1.4 \
--gas auto \
--gas-prices 0.000000001ulava \
-y

!!! Save priv_validator_key.json which is located in /root/.lava/config

PreviousLavaNext🛠️ Upgrade

Last updated 24 days ago