Lava Testnet Services logo

Links

Website - https://www.lavanet.xyz/

Twitter - https://twitter.com/lavanetxyz

Discord - https://discord.gg/ErHHFugh

Offitial Doc - https://docs.lavanet.xyz/

GitHub - https://github.com/lavanet

Validator Requirements

Recommended Hardware Requirements to run Validator // 16GB RAM / 1TB SSD / 8 Cores //

OS : Linux OS Ubuntu 22.04.3 LTS

Services

Explorer - https://explorer.cryptosj.net/lava-testnet-2

RPC+indexer - https://lavatestnetrpc.cryptosj.net/

api - https://lavatestnetapi.cryptosj.net/

** TO USE RPC WITH --node PLEASE USE tcp://lavatestnetrpc.cryptosj.net:20002 **

RPC+indexer - tcp://lavatestnetrpc.cryptosj.net:20002

Seed - tcp://[email protected]:51004

Archive RPC   PLEASE CONTACT         [email protected]

Config

Genesis - https://files.cryptosj.net/files/lava/testnet/genesis.json

Addrbook - https://files.cryptosj.net/files/lava/testnet/addrbook.json

Snapshot - https://files.cryptosj.net/files/lava/testnet/snapshot.tar.gz

Snapshot ** block height is ** ** size is ** ** app version **

Snapshot ** CREATION DATE **

WASM         NO

Pruning       100/0/19

Indexer       null

Installation ** chain ID is lava-testnet-2 **

mkdir files

cd files

wget https://github.com/lavanet/lava/releases/download/v1.0.1/lavad-v1.0.1-linux-amd64

mv lavad-v1.0.1-linux-amd64 lavad

chmod +x lavad

sudo cp lavad /usr/local/bin/

sudo cp lavad /usr/bin/

sudo cp lavad /usr/local/sbin/

lava Service Files

sudo nano /etc/systemd/system/lava.service

** copy and paste the blow be sure to change the YOUR_LINUX_USER **

[Unit] Description=lava Service After=network-online.target [Service] User=YOUR_LINUX_USER ExecStart=/usr/local/bin/lavad start StandardOutput=syslog StandardError=syslog Restart=on-failure RestartSec=10 LimitNOFILE=10000 [Install] WantedBy=multi-user.target


Start and Init the network

sudo systemctl enable lava.service

** Generating configs **

lavad init YOUR_Chosen_moniker

** run lava service **

sudo journalctl -u lava.service -f --output cat

** check your node status by issueing the command below be sure to install jq using apt **

curl -s localhost:PORT/status | jq

Snapshot ** block height is ** ** size is ** ** app version ** Snapshot ** CREATION DATE **

** If you want to use our snapshot ** ** chain ID is lava-testnet-2 **

sudo systemctl stop lava.service

cd $HOME/.lava

wget https://files.cryptosj.net/files/lava/testnet/snapshot.tar.gz

cp $HOME/.lava/data/priv_validator_state.json /$HOME

rm -rf data

tar -xvf snapshot.tar.gz

cp $HOME/priv_validator_state.json $HOME/.lava/data/

sudo systemctl start lava.service

sudo journalctl -u lava.service -f --output cat

** you can check node status **

curl http://127.0.0.1:PORT/status | jq

Monitoring Your Node

** To monitor your node you have to keep an eye on your node as well as your server **

** and to do this we will use grafana,prometheus and node_exporter **

Grafana - https://grafana.com/

Prometheus - https://prometheus.io/

Node_exporter - https://github.com/prometheus/node_exporter

OS : Linux OS Ubuntu 22.04.3 LTS



Grafana ** Installing grafana **

sudo apt-get install -y apt-transport-https software-properties-common wget



sudo mkdir -p /etc/apt/keyrings/



wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null



echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list



sudo apt-get update



sudo apt-get install grafana



sudo systemctl daemon-reload



sudo systemctl start grafana-server



sudo systemctl status grafana-server



** Your Grafana should be working now **

** Log to your grafana dashboard on port 3000**

http://SERVER_IP:3000/



** We will use namada dashboard and change the space namespace to cometbft **

** go to grafana dashboard **

https://grafana.com/grafana/dashboards/

** search for namada , or chose ID 19014 then import it to your grafana dashboard **

** here is the link for namada dashboard to import **

https://grafana.com/grafana/dashboards/19014-namada-blockchains/



Prometheus ** Installing Prometheus **

** Please follow the complete guide from offical site **

https://prometheus.io/docs/prometheus/latest/installation/



Node_exporter ** Installing Node_exporter **

** Please follow the complete guide from Prometheus site **

https://prometheus.io/docs/guides/node-exporter/



** search for node_exporter , or chose ID 11074 then import it to your grafana dashboard **

** here is the link for Node_exporter dashboard to import **

https://grafana.com/grafana/dashboards/11074-node-exporter-for-prometheus-dashboard-en-v20201010/