Lava network test node feeding tutorial

S17_Long Xiaoyu, S17Labs
2023-05-31 16:19:08
Collection
Lava is a network protocol that uses Cosmos technology to support flexible and scalable RPC by connecting applications to multiple node runners simultaneously.

Author: S17_龙小羽, S17Labs

# Introduction

Lava is a network protocol that utilizes Cosmos technology to support flexible and scalable RPC by connecting applications to multiple node runners simultaneously. Outsource your node information to a top-tier vendor network from Web3.

Official website: Lava (lavanet.xyz)

Lava has secured seed funding from PayPal, Jump Crypto, and others. The project is still in the early testing phase, and you can set up a test node for initial trials.

Preparation Work

This article is a purely technical document and may seem a bit dry, so please be prepared.

(1) Environment Setup

Server requirements:

  • 4GB of RAM

  • 4-core CPU

  • 100GB of hard disk storage

  • Server operating system: Ubuntu 18 or higher Linux server

  • Server location: United States

(2) Wallet and Faucet

Since the wallet needs to be generated via the command line, this will be done in the following steps.

# Setting Up a Test Node

(1) Install Dependency Environment

image

Install Go Language

image

(2) Create a Local Node

Download the configuration file

image

Set the application configuration by copying the default configuration file of lavad to the config Lava configuration folder

image

Set the genesis file

image

(3) Join Lava Testnet

Install Cosmovisor to automate the upgrade process

Set Up Cosmovisor

image

image

image

image

Create systemd Unit File

image

Download the Latest Lava Data Snapshot (Optional) ------ Not provided by the official team yet

Enable and Start Cosmovisor Service

Configure the Cosmovisor service to run at startup and start it

image

(4) Verification

Verify the Cosmovisor setup

Check the status of the Cosmovisor service to ensure it is running:

image

Verify Node Status

  • Note that the location of lavad now exists under the Cosmovisor path:

image

# Create Wallet and Obtain Test Tokens

Create a new wallet

image

To ensure your wallet is saved in your keyring, look for KEY_NAME in your key list

image

The last thing to do before initializing the validator is to obtain your validator public key, which is created when you first initialize the node. To get your validator public key:

image

Use Discord Faucet to Obtain Testnet LAVA

Join dc https://discord.gg/5VcqgwMmkA

# Stake Validator Node

Once your account has funds, you can run this program to stake and start validating.

image

Confirm that your account has received tokens for staking

image

Ensure there are tokens in the account

image

Staking Validation

Here is an example with a starting value of 90000ulava. Replace <<moniker_node>> with a human-readable name of your choice for the validator.

image

After setup, you can check your wallet address on the official block explorer to see your staking node

Lava Block Explorer: https://bd.lavanet.xyz/

image

# System Maintenance and Monitoring

Each time you re-enter the system, you need to set the environment variables

image

This concludes today's tutorial on setting up a Lava network test node. If you have any questions or need to communicate, please leave a message in the background.

ChainCatcher reminds readers to view blockchain rationally, enhance risk awareness, and be cautious of various virtual token issuances and speculations. All content on this site is solely market information or related party opinions, and does not constitute any form of investment advice. If you find sensitive information in the content, please click "Report", and we will handle it promptly.
ChainCatcher Building the Web3 world with innovators