Time: 5 minutes
To balance channels you have several tools, Loop is one such tool.
- Golang # (update to the latest version before you start).
First, go to your home directory.
Download the source code.
git clone https://github.com/lightninglabs/loop
Enter the directory.
Grab the latest version/tag/release.
git checkout v0.26.4-beta
go install ./...
Test if it succeeded by temporarily starting Loop.
In the output you will read that Loop is connected to your LND and with
Ctrl + C you can stop
In addition to the Loop program, a CLI is also installed. You can check it with
You can access Loop from the outside on two different ports.
sudo ufw allow 8081 comment "Port for REST API of Loop"sudo ufw allow 11010 comment "Port for RPC from Loop"
If you want to run Loop in the background you need another service.
sudo nano /etc/systemd/system/loop.service
Paste this in.
Save the changes with
Ctrl + X and confirm with
Notify the system of the new service.
sudo systemctl enable loop
Start the loop service as follows.
sudo systemctl start loop
If you want to see if the service was started, run this.
systemctl status loop
If you want a view of the status across multiple sessions, use this command.
sudo journalctl -f -u loop
Go to the application directory.
Update the repository with the latest changes via Git.
git fetch --all
Show the latest version/tag/release.
git describe --tags `git rev-list --tags --max-count=1`
Retrieve the changes from the latest release.
git checkout -f <OUTPUT FROM PREVIOUS STEP> #example v0.26.4-beta
go install ./...
Restart the Loop and LiT services (if you have that running).
sudo systemctl restart loopsudo systemctl restart lit