Skip to content

uve12/layeredge-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 

Repository files navigation

layeredge-cli Node setup guide

How to run layeredge light node on vps

Follow these steps to set up and run your LayerEdge CLI Light Node efficiently.

Join Crypto Console Community

Join TG : Crypto Console Telegram

Follow X : Crypto Console Twitter

Subscribe : Crypto Console Youtube


Hardware requirements:

Hardware Minimum Requirement
CPU atleast 4 Cores
RAM 4 - 8 GB
Disk 100 GB SSD

VPS Options

💻 Contabo VPS Deals 🚀 Buy with Credit Card/Paypal/Crypto Credit card :

Get powerful VPS solutions with these direct links:

VPS Direct Link
VPS 1 Contabo VPS 1
VPS 2 Contabo VPS 2
VPS 3 Contabo VPS 3
VPS 4 Contabo VPS 4

💡 Get started with the perfect VPS for your needs! 🚀


Step 1: Install Required Dependencies

sudo apt update && sudo apt upgrade
sudo apt install nano screen build-essential gcc

Install Go

sudo rm -rf /usr/local/go
curl -L https://go.dev/dl/go1.22.4.linux-amd64.tar.gz | sudo tar -xzf - -C /usr/local
echo 'export PATH=$PATH:/usr/local/go/bin:$HOME/go/bin' >> $HOME/.bash_profile
echo 'export PATH=$PATH:$(go env GOPATH)/bin' >> $HOME/.bash_profile
source .bash_profile
go version

Install Rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. "$HOME/.cargo/env"

Risc0 Toolchain: If not installed, run:

curl -L https://risczero.com/install | bash
rzup install

source "/root/.bashrc"

Step 2: Clone the Light Node Repository

git clone https://github.com/Layer-Edge/light-node.git
cd light-node

Step 3: Configure Environment Variables

Set up the required environment variables in your terminal session or add them to a .env file:

nano .env
GRPC_URL=grpc.testnet.layeredge.io:9090
CONTRACT_ADDR=cosmos1ufs3tlq4umljk0qfe8k5ya0x6hpavn897u2cnf9k0en9jr7qarqqt56709
ZK_PROVER_URL=http://127.0.0.1:3001
API_REQUEST_TIMEOUT=100
POINTS_API=light-node.layeredge.io
PRIVATE_KEY='cli-node-private-key'

Replace with your privatkey without 0x

Step 4: Start the Merkle Service

Before running the Light Node, start the Merkle service:

screen -S rsic
cd risc0-merkle-service
cargo build && cargo run

Press CTRL + A + D

Wait until the Merkle service is fully initialized before proceeding.

Step 5: Build and Run the LayerEdge Light Node

screen -S lightnode
go build
./light-node

Press CTRL + A + D

create service file for automation

sudo nano /etc/systemd/system/lightnode.service
[Unit]
Description=LayerEdge Light Node
After=network.target

[Service]
User=root
WorkingDirectory=/root/light-node
ExecStart=/root/light-node/light-node
Restart=always
RestartSec=5
StandardOutput=journal
StandardError=journal
EnvironmentFile=/root/light-node/.env

[Install]
WantedBy=multi-user.target
sudo systemctl daemon-reload
sudo systemctl enable lightnode.service
sudo systemctl start lightnode.service
sudo systemctl status lightnode.service

check logs

sudo journalctl -fu lightnode.service

Ensure that the Light Node is running independently and correctly connected to the Merkle service.

Fetch Points via CLI

https://light-node.layeredge.io/api/cli-node/points/{walletAddress}

Replace {walletAddress} with your actual CLI wallet address.

Configure Wallet to dashboard

  • Visit : https://dashboard.layeredge.io/
  • If you don't have an account create one (Code : YLoguJPr )
  • To link your CLI node with the dashboard for analytics:
  • Connect your wallet
  • Link your CLI node’s Public Key

Follow : https://x.com/cryptoconsol

About

How to run layeredge light node on vps

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published