Giter Club home page Giter Club logo

lava's Introduction

Setup your node on Lava

63861498b497bc3d955753ba_lavanet (1)

Introduction

Lava uses a cryptoeconomic incentive framework and appchain to coordinate node runners and applications in the trustless exchange of blockchain RPC service. Web3 must diversify its node operators to ensure that the ecosystem can achieve censorship-resistance; Lava creates this diversity. The Network also includes several novel innovations across its technology stack and blockchain, including mechanisms for ensuring data integrity, scalability and privacy.

Hardware Requirements

Minimum Hardware Requirements

  • 4x CPUs; the faster clock speed the better

  • 8GB RAM

  • 100GB of storage (SSD or NVME)

Recommended Hardware Requirements

  • 8x CPUs; the faster clock speed the better

  • 64GB RAM

  • 1TB of storage (SSD or NVME)

1-ɪɴᴛᴀʟʟᴀᴛɪᴏɴ ᴏɴᴇ ᴛɪᴍᴇ (ꜱᴄʀɪᴘᴛ ᴀᴜᴛᴏᴍᴀᴛɪᴄ ɪɴꜱᴛᴀʟʟᴀᴛɪᴏɴ)

wget -O lava.sh https://raw.githubusercontent.com/appieasahbie/lava/main/lava.sh && chmod +x lava.sh && ./lava.sh

(Check the status of your node)

  lavad status 2>&1 | jq .SyncInfo.catching_up

open ports and active the firewall

  sudo ufw default allow outgoing
  sudo ufw default deny incoming
  sudo ufw allow ssh/tcp
  sudo ufw limit ssh/tcp
  sudo ufw allow ${LAVA_PORT}656,${LAVA_PORT}660/tcp
  sudo ufw enable

Create wallet

  • (Please save all keys on your notepad)

    lavad keys add $WALLET
    
  • To recover your old wallet use this command

    lavad keys add $WALLET --recover
    
  • show keys

    lavad keys list
    

Fund your wallet (to create validator) Discord channel #faucet

Create validator (after recieving of tokens and must important sync is false)

  • replace with your wallet name and with your validator name

lavad tx staking create-validator
--amount 90000ulava
--from Yourwalletname
--fees 10000ulava
--commission-max-change-rate "0.5"
--commission-max-rate "0.9"
--commission-rate "0.9"
--min-self-delegation "1"
--pubkey $(lavad tendermint show-validator)
--moniker Yourvalidatorname
--chain-id lava-testnet-1

Snapchot Auto install with the script above

Cheat Sheet

Delegate to yourself

  lavad tx staking delegate $(lavad keys show wallet --bech val -a) 1000000ulava --from wallet --chain-id lava-testnet-1 --gas-prices 0.1ulava --gas-adjustment 1.5 --gas auto -y 

Redelegate

  lavad tx staking redelegate $(lavad keys show wallet --bech val -a) 1000000ulava --from wallet --chain-id lava-testnet-1 --gas-prices 0.1ulava --gas-adjustment 1.5 --gas auto -y  

Get Validator Info

 lavad status 2>&1 | jq .ValidatorInfo

Get Catching Up

 lavad status 2>&1 | jq .SyncInfo.catching_up

Get Latest Height

 lavad status 2>&1 | jq .SyncInfo.latest_block_height

Get Peer

 echo $(lavad tendermint show-node-id)'@'$(curl -s ifconfig.me)':'$(cat $HOME/.lavad/config/config.toml | sed -n '/Address to listen for incoming connection/{n;p;}' | sed 's/.*://; s/".*//')

Reset Node

lavad tendermint unsafe-reset-all --home $HOME/.lavad --keep-addr-book

Remove Node

sudo systemctl stop lavad && sudo systemctl disable lavad && sudo rm /etc/systemd/system/lavad.servi

Run Service

sudo systemctl start lavad

Stop Service

sudo systemctl stop lavad

Restart Service

sudo systemctl restart lavad

Check Service Status

sudo systemctl status lavad

Check Service Logs

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

Delete the node

sudo systemctl stop lavad
sudo systemctl disable lavad
sudo rm /etc/systemd/system/lava* -rf
sudo rm $(which lavad) -rf
sudo rm $HOME/.lavad* -rf
sudo rm $HOME/lavad -rf
sed -i '/LAVA_/d' ~/.bash_profile

buy me a cup of coffe

lava's People

Contributors

appieasahbie avatar alphena-ek avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.