DA Lightclient
Last updated
Was this helpful?
Last updated
Was this helpful?
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 .
For a general understanding of the underlying Avail technology, read .
The following provides step-by-step instructions on how to set up, run, and monitor DA Lightclient.
Ensure the following are installed on your system:
Docker: we recommend (Windows, Linux, macOS).
Docker Compose: comes with Docker Desktop; alternatively, can be installed .
.
In the terminal, navigate to a directory of your choice, then clone the repo:
Navigate to the directory of the newly cloned repo:
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.
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.
To add your DA Lightlclient to the system:
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.
Regularly check on your DA Lightlient to ensure it runs smoothly and keeps earning you LUMIA.
To monitor logs for debugging or status updates, use:
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.
If your DA Lightclient is down, here are some common cases and solutions for them.
Verify the service bound to port 7008 is running and accessible:
Check the container's networking:
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
Visit
Endpoint:
Ensure the config.yaml is formatted correctly and placed in the correct directory. Read for details.
If you encounter issues or need further assistance, feel free to .