1. Initializing Your Node

Step 1: Download the CLI Client

You can download the CLI client using curl or wget. Replace <version> with the latest version number from the Lumoz GitHub releases page.

# Using curl
curl -LO <https://github.com/Lumoz-protocol/Lumoz-zkverifier-node-cli/releases/download/><version>/lumoz-cli-<version>-macos-arm64.tar.gz

# Using wget
wget <https://github.com/Lumoz-protocol/Lumoz-zkverifier-node-cli/releases/download/><version>/lumoz-cli-<version>-macos-arm64.tar.gz

Step 2: Extract and Run the Client

tar -xzf lumoz-cli-<version>-macos-arm64.tar.gz
cd lumoz-cli-<version>
./lumoz-cli init

Step 3: Input Required Information

When you run ./lumoz-cli init, you will be prompted for several inputs. Here’s an example of how to respond:

Enter your private key: <your_private_key>
Enter node operator address (press Enter for default): <your_address>
Enter number of licenses to delegate (minimum 1): 1
Enter reward distribution split (e.g., 5,45,45):
Commission Rewards: 5%
Delegated License Rewards: 45%
Staked esMOZ Rewards: 45%
Enter node name: MyLumozNode
Enter node description: A node for Lumoz network.
Enter logo URL (optional): <logo_url>
Enter social media URL (optional): <social_media_url>

2. Running Your Node

Method 1: Via Command Line Interface (CLI)

After initialization, you can run your node directly from the command line:

./lumoz-cli run

Method 2: Node as a Service

If you prefer to set up your node as a service, you can create a systemd service file. Here’s an example:

# Create a service file
sudo nano /etc/systemd/system/lumoz-node.service

Add the following content to the file:

[Unit]
Description=Lumoz Node Service
After=network.target

[Service]
ExecStart=/path/to/lumoz-cli run
WorkingDirectory=/path/to/lumoz-cli/
User=your_username
Restart=always

[Install]
WantedBy=multi-user.target