Install and run Loop
You can run Loop directly from the binary releases, or compile it from source:
git clone https://github.com/lightninglabs/loop.git
make && make install
Loop, like bitcoind, LND and others, comes with two components: Loopd and a command line interface (CLI) to interact with it called loop.
You will need to first run Loop with the command
If you want to run Loop in the background, you can also write the output to
&>/dev/null &to the above command.
If you are running Lightning Terminal already, either locally or remotely, Loop will be running inside of it already. You can make use of Loop using the Lightning Terminal GUI as explained in the Guide to Lightning Terminal.
If you want to interact with Loop in Lightning Terminal through the command line, you will need to specify the port and tls.cert every time you run loop using the flag
--rpcserver=localhost:8443 --tlscertpath=~/.lit/tls.cert, for example
./loop --rpcserver=localhost:8443 --tlscertpath=~/.lit/tls.certquote in 500000
Alternatively you may also copy over the
If you are a Lightning Terminal user and want to avoid having to include the
--rpcservercommand every time or navigate to the location of the loop binary, you may also add an entry to your aliases file (e.g.
alias loop=’~/path/to/loop --rpcserver=localhost:8443’