DA Lightclient
Introduction
We're using DA Node, DA Lightclient Node, and DA Lightclient interchangeably in this doc.
Lumia chain builds on the concept of lightclients introduced by the AvailDA team. Lumia uses them as part of the infrastructure to enable seamless cross-chain interaction and liquidity interoperability.
As part of the goal to reach "stage 2", Lumia is putting emphasis on decentralization and community participation.
What does it mean?
November 2024, Lumia held a "Node sale" event. Participants who have purchased a node license NFT can become a DA Lightclient operator. These node licenses grant the holders the right participate in running of the Lumia chain — spin up and operate a DA Lightclient and earn a portion of the LUMIA rewards allocated to the DA nodes cluster.
For a general understanding of the Lumia's lightclient , read Lumia DA Lightclient Nodes.
For a general understanding of the underlying Avail technology, read Avail DA.
How to Run a DA Lightclient
The following provides step-by-step instructions on how to set up, run, and monitor DA Lightclient.
The repository (repo), holding the application, is lumia-lightclient.
Prerequisites
Ensure the following are installed on your system:
Docker: we recommend Docker Desktop (Windows, Linux, macOS).
Docker Compose: comes with Docker Desktop; alternatively, can be installed separately.
Git.
Setting Up DA Lightclient
Step 1: Clone the repo
In the terminal, navigate to a directory of your choice, then clone the repo:
Navigate to the directory of the newly cloned repo:
Step 2: Create config.yaml
In the directory of the newly cloned repo, create a file named config.yaml:
Copy-paste the following configuration into it:
Ensure the file is saved in the same directory as docker-compose.yml.
Running DA Lightclient
Step 1: Build and Start the Docker Container
To build and start the application in a docker container, from the directory of the newly cloned repo, run:
Step 2: Verify the Application and Record Your peer_id
Once the application starts:
Before proceeding, ensure you have waited at least 2 minutes after starting your Docker container.
Verify its functionality by opening http://localhost:3008/status in your browser or using a tool like curl to access it. You'll see a response; a typical response might look like this:
In this status response, find and record the peer_id value. This ID is essential for adding the node to the Lumia DA Tracker and must be recorded accurately for further configuration.
Adding Your DA Lighclient into the System
To add your DA Lightlclient to the system:
Visit Lumia DA Tracker.
In the top-right corner, click Add Node.
Connect the wallet that holds your Node Sale NFT.
In the newly opened dialogue named Add New Validator Node:
Enter the NFT Token ID from your wallet (we aim to auto-populate this in the future).
Enter you PeerId (peer_id) from the DA Lightclient that you've started.
Click Add Node to finalize.
Now that your node is added to the system, it starts accruing rewards per hour as long as your uptime remains above 95%. You can claim your rewards directly to your connected wallet on Lumia Network once a month.
Monitoring Your DA Lightclient
Regularly check on your DA Lightlient to ensure it runs smoothly and keeps earning you LUMIA.
Check Logs
To monitor logs for debugging or status updates, use:
Access the API
Endpoint: http://localhost:3008/status
Method:
GET
Example response structure:
Status: Details about the service's health and connection state.
Node Peer Data: Information about the node’s peer configuration and connectivity.
Node API ID Data: Blockchain details such as genesis_hash, latest block, and app_data.
Troubleshooting
If your DA Lightclient is down, here are some common cases and solutions for them.
1. Connection Refused
Verify the service bound to port 7008 is running and accessible:
Check the container's networking:
2. Port Conflicts
Ensure ports 7008, 37100, and 37101 are not being used by other services.
3. Debugging Logs
View detailed logs to diagnose other issues:
4. Validate Configuration
Ensure the config.yaml is formatted correctly and placed in the correct directory. Read Setting Up DA Lightclient for details.
Further Help
If you encounter issues or need further assistance, feel free to reach out to us on Discord.
Last updated
Was this helpful?