Download the latest Light Client build from the releases page.
The easiest way to connect the light client to Avail mainnet is using the following command.
./light-client-whitelabel -n mainnet
The rest of the CLI options can be found here.
For logging and metrics project name can be set in two ways:
- Using the
project-name
CLI option:
./light-client-whitelabel -n mainnet --project-name example_project
- Using the configuration file with the
project_name
parameter.
project_name = "example_project"
To build the docker image you can run the following command:
docker build -t light-client-whitelabel:latest -f Dockerfile.release .
Once the image is built, you can run the image by supplying params:
docker run light-client-whitelabel:latest --network mainnet --project-name TestName
The network
parameter is required to connect seamlessly; without it, ensure your config file includes all necessary p2p network components.
The rest of the configuration reference can be found here.