Lava Network

${\color{violet} COPAS \space SERTAIN \space SUMBER \space SU}$

${\color{violet} DIKIRA \space BIKIN \space GINIAN \space GAK \space PERLU \space USAHA \space APA}$

Official Links

Zealy

Update Sistem

sudo apt update -y; sudo apt upgrade -y

Install alat & bahan

sudo apt install -y unzip logrotate git jq sed wget curl coreutils systemd

Install GO

sudo rm -rf /usr/local/go
curl -Ls https://go.dev/dl/go1.19.10.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)

Clone Repo

git clone https://github.com/lavanet/lava-config.git
cd lava-config/testnet-2
source setup_config/setup_config.sh

Setup

echo "Lava config file path: $lava_config_folder"
mkdir -p $lavad_home_folder
mkdir -p $lava_config_folder
cp default_lavad_config_files/* $lava_config_folder

Set file genesis

cp genesis_json/genesis.json $lava_config_folder/genesis.json

NEXT!

Set node

lavad_binary_path="$HOME/go/bin/"
mkdir -p $lavad_binary_path

Download genesis binary

wget https://lava-binary-upgrades.s3.amazonaws.com/testnet-2/genesis/lavad
chmod +x lavad

Verify path

cp lavad /usr/local/bin

Cek apakah berhasil terpasang

lavad --help

JIka muncul list command = aman

Create Service

echo "[Unit]
Description=Lava Node
After=network-online.target
[Service]
User=$USER
ExecStart=$(which lavad) start --home=$lavad_home_folder --p2p.seeds $seed_node
Restart=always
RestartSec=180
LimitNOFILE=infinity
LimitNPROC=infinity
[Install]
WantedBy=multi-user.target" >lavad.service
sudo mv lavad.service /lib/systemd/system/lavad.service

Start Service

sudo systemctl daemon-reload
sudo systemctl enable lavad.service
sudo systemctl restart systemd-journald
sudo systemctl start lavad

Cek logs

sudo journalctl -u lavad -f --no-hostname -o cat

Screenshot_99

= GUD

Cek status sync

lavad status | jq .SyncInfo.catching_up

Tunggu false

NEXT

Create wallet

lavad keys add wallet

backup pharse, copas address

Req Faucet

  • Ke Discord channel #faucet
  • Request dengan command $request addressLavaMu

Setelah SYNC

Create Validator

lavad tx staking create-validator \
    --amount="50000ulava" \
    --pubkey=$(lavad tendermint show-validator --home "$HOME/.lava/") \
    --moniker="NamaMu" \
    --chain-id=lava-testnet-2 \
    --commission-rate="0.10" \
    --commission-max-rate="0.20" \
    --commission-max-change-rate="0.01" \
    --min-self-delegation="10000" \
    --details "BEBASSUKAHATI" \
    --identity "IdentityMu" \
    --website "websiteMu" \
    --gas="auto" \
    --gas-adjustment "1.5" \
    --gas-prices="0.05ulava" \
    --home="$HOME/.lava/" \
    --from=wallet

SUDAH

Jika Ingin membaca docs lebih lanjut

Docs Official