This repository contains the installation script and instructions for setting up a LayerEdge Light Node.
LayerEdge Light Node allows you to participate in the LayerEdge network, connecting to the LayerEdge Dashboard for analytics and earning rewards.
- Linux-based operating system
- Sudo privileges
- Internet connection
You can install the LayerEdge Light Node using either curl or wget:
curl -L https://raw.githubusercontent.com/WINGFO-HQ/LayerEdgeCLI/refs/heads/main/layeredge.sh -o layeredge.sh && chmod +x layeredge.sh && ./layeredge.shwget https://raw.githubusercontent.com/WINGFO-HQ/LayerEdgeCLI/refs/heads/main/layeredge.sh && chmod +x layeredge.sh && ./layeredge.shIf you prefer to install manually:
- Clone this repository
- Make the script executable: chmod +x layeredge.sh
- Run the script: ./layeredge.sh
The installation script will:
1. Check and install required dependencies:
- Git
- Go (version 1.18 or higher)
- Rust (version 1.81.0 or higher)
- Risc0 Toolchain
2. Clone the LayerEdge Light Node repository
3. Configure environment variables
4. Build and set up the Merkle service and Light Node
5. Configure systemd services for automatic startup
sudo systemctl start layeredge-merkle.service
sudo systemctl start layeredge-lightnode.servicesudo systemctl status layeredge-merkle.service
sudo systemctl status layeredge-lightnode.servicesudo journalctl -u layeredge-merkle.service -f
sudo journalctl -u layeredge-lightnode.service -fsudo systemctl stop layeredge-lightnode.service
sudo systemctl stop layeredge-merkle.servicesudo systemctl restart layeredge-merkle.service
sudo systemctl restart layeredge-lightnode.service- Fetch points via CLI:
https://light-node.layeredge.io/api/cli-node/points/{walletAddress}Replace {walletAddress} with your actual CLI wallet address.
- Connect to Dashboard:
- Navigate to dashboard.layeredge.io
- Connect your wallet
- Link your CLI node's Public Key
# Stop and disable services
sudo systemctl stop layeredge-lightnode.service
sudo systemctl stop layeredge-merkle.service
sudo systemctl disable layeredge-lightnode.service
sudo systemctl disable layeredge-merkle.service
# Remove service files
sudo rm /etc/systemd/system/layeredge-lightnode.service
sudo rm /etc/systemd/system/layeredge-merkle.service
sudo systemctl daemon-reload
# Remove the light-node directory
cd ~
rm -rf light-node
# Optional: Clean up Risc0
rm -rf ~/.risc0