Sign inSign up

svetekllc/lava

By svetekllc

Updated about 1 month ago

Lava pairs Providers with Applications for scalable, private and uncensored access to Web3.

Image
0

4.3K

svetekllc/lava repository overview

What is Lava

Lava is decentralizing access to blockchain data. It is the first truly unstoppable protocol for blockchain API access.

Serving as a two-sided marketplace that incentivizes and coordinates blockchain nodes to provide dapps with blockchain data, Lava is setting the standard for fast, reliable, and secure API at scale.

Lava as a Validator
Lava blockchain uses Proof-of-stake (PoS) as the consensus mechanism, based on Tendermint. Validators participate in the network by verifying new blocks to earn rewards.

Lava as a Provider
Providers are the backbone of the Lava network, servicing relay requests by staking on the network and operating RPC nodes on Relay Chains queried by Consumers (e.g., Cosmos, Ethereum, Osmosis, Polygon, etc.). In return, they earn fees in the form of LAVA tokens from the Consumers for servicing these requests.

Install Docker Engine:

Run docker container

Lava Validator

docker run --name lava-validator \
           --env-file <path_to_env_file> \
           --publish 26656:26656 \
           --volume ./lava:/root/.lava \
           --detach <image:tag>

node.env.example

# Validator variables
ADDRBOOK_URL=
CHAIN_ID=<set chain_id>
CONFIG_PATH=/root/.lava
DIFF_HEIGHT=1000
GENESIS_URL=https://raw.githubusercontent.com/lavanet/lava-config/main/testnet-2/genesis_json/genesis.json
KEY=<set key name>
KEYRING=<set keyring type>
KEYALGO=eth_secp256k1
LOGLEVEL=info
MONIKER=<set moniker name>
PEERS="d5519e378247dfb61dfe90652d1fe3e2b3005a5b@lava-testnet.rpc.kjnodes.com:14456"
PROMETHEUS_PORT=<set prometheus port>
P2P_PORT=<set p2p port>
RPC_PORT=<set rpc port>
RPC=https://public-rpc-testnet2.lavanet.xyz:443/rpc/
SEEDS=3a445bfdbe2d0c8ee82461633aa3af31bc2b4dc0@testnet2-seed-node.lavanet.xyz:26656,e593c7a9ca61f5616119d6beb5bd8ef5dd28d62d@testnet2-seed-node2.lavanet.xyz:26656
STATE_SYNC=<set the flag (true|false)>
TOKEN=lava

Lava RPC Provider

docker run --name lava-provider \
           --env-file <path_to_env_file> \
           --publish 22001:22001 \
           --volume ~/.lava/:/root/.lava \
           --detach <image:tag>

provider.env.example

# Provider variables
CHAIN_ID=<set chain_id>
CONFIG_PATH=/root/.lava
GEOLOCATION=<set geolocation>
KEY=<set key name>
KEYRING=<set keyring type>
KEYALGO=eth_secp256k1
LOGLEVEL=info
MONIKER=<set moniker name>
PROMETHEUS_PORT=<set prometheus port>
REWARDS_STORAGE_DIR=rewards-storage
RPC=<set lava rpc url>
TOTAL_CONNECTIONS=10

Docker container logs

docker container logs [OPTIONS] CONTAINER

Options:
--details (Show extra details provided to logs)
--follow or -f (Follow log output)
--tail or -n (Number of lines to show from the end of the logs)

ex.: docker container logs -f lava-provider

Official Chain IDs

Every chain must have a unique identifier or chain-id. Tendermint requires each application to define its own chain-id in the genesis.json fields.

lava-testnet-2

Version nameBlock height
v0.21.1.2340778
v0.22.0396595
v0.23.5435889

Geolocation

The location of the provider's nodes. (Note that 0 is only assigned via policy/gov proposal)

Version nameBlock height
GLS = 0Global-strict
USC = 1US-Center
EU = 2Europe
USE = 4US-East
USW = 8US-West
AF = 16Africa
AS = 32Asia
AU = 64Australia, includes NZ
GL = 65535Global

Manual configuration node

You can find any details about it by using our documentation docs.lavanet.xyz

Quick Reference

Tag summary

Content type

Image

Digest

sha256:f2582c5e8

Size

42.4 MB

Last updated

about 1 month ago

docker pull svetekllc/lava:v6.2.5