To be able to receive payments on the Lightning Network a node needs:
The max amount of the incoming payment is determined by the highest inbound liquidity of a single channel (not additive between channels).
https://1ml.com/statistics shows the average channel size on the network:
0.028 BTC = 2 800 000 satoshis on 2019 May 28.
Tor is an anonymizing network designed to hide the participant`s IP adress. Somewhat similar to using a VPN with multiple hops. Learn more at: https://en.wikipedia.org/wiki/Tor_(anonymity_network)
B
in an A
-B
-C
serial connection.B
are set up so that there is inbound capacity (remote balance) from A
and outgoing capacity (local balance) to C
.A
wants to pay C
there will be 1 hop in the route.A
sends the satoshis to B
(the routing node) which will pay to C
.to receive payments need to have a route hint included in the invoice:
lncli addinvoice <amount> --private
Unlike with on-chain transactions (where the fee is paid for the bytes the transaction takes up in a block) Lightning Network fees are related to the amount routed. There are two fee components:
There is no LN fee for payments in a direct channel between two peers.
To change routing fees of your node use the command: https://api.lightning.community/#updatechannelpolicy
$ lncli updatechanpolicy 500 0.0001 144
$ lncli updatechanpolicy 1000 0.000001 144
It is important to increase the routing fee for any expensive channels so rebalancing or closure is paid for if payments are routed that way. Check the routing fees of the peers on 1ml.com or in lndmanage.
Setting the fees for individual channels takes only one click in the RTL app.
Read more and how to set one up watchtower.md.
Read the basic ideas from Alex Bosworth: https://github.com/alexbosworth/run-lnd/blob/master/LIQUIDITY.md
Pay with Lightning and receive onchain.
See the a list of recommendations CreateInboundLiquidity.md
Simply open channels or pay onchain and receive on Lightning.
See the a list of recommendations CreateOutboundLiquidity.md
The channels are best to be balanced with funds on each side to maximize the ability to route payments (allows bidirectional traffic).
A feature rich tool to work with LND balances. Has an experimental feature to connect to a personal Telegram bot and notify about the node activity.
bos help rebalance
An automated manager for C-Lightning forwarding nodes.
A command-line tool for advanced channel management of an LND node written in python.
Install with:
# activate virtual environment
sudo apt install -y python3-venv
python3 -m venv venv
source venv/bin/activate
# get dependencies
sudo apt install -y python3-dev libatlas-base-dev
pip3 install wheel
python3 -m pip install lndmanage
Start the interactive mode (do this at every new start):
$ source venv/bin/activate
(venv) $ lndmanage
To display the status of the channels:
```bash
$ lndmanage status
$ lndmanage listchannels rebalance
Example rebalance command:
$ lndmanage rebalance --max-fee-sat 20 --max-fee-rate 0.0001 CHANNEL_ID --reckless
Using this python script you can easily rebalance individual channels of your lnd node.
To install run in the terminal of the lnd node:
$ git clone https://github.com/C-Otto/rebalance-lnd
$ cd rebalance-lnd
$ pip install -r requirements.txt
Use with (more options in the readme):
$ python rebalance.py -t <channel_ID-where-to-move-sats> -f <channel_ID-from-which-to-move-sats> -a <amount-of-sats-to-be-moved>
RTL is a web UI for Lightning Network Daemon. Aimed to be used on the local network. HTTPS or Tor connection method is available.
https://medium.com/@suheb__/how-to-ride-the-lightning-447af999dcd2
An LND Lightning Node Manager in your Browser.
A mobile Bitcoin app for Lightning Network Daemon (lnd) node operators. Android and iOS - connects through the REST API (port 8080 or Tor)
A lightning wallet for desktop, iOS and Android - can connect to your LND node remotely through the GRPC interface (port 10009)
Bring the power of lightning to the web with in-browser payments and identity, all with your own node.
https://medium.com/lightning-power-users/bitcoin-lightning-joule-chrome-extension-ac149bb05cb9
lndash is a simple read-only web dashboard for lnd - Lightning Network Daemon.
Demonstration: https://lightninglayer.com/
Features:
lntop is an interactive text-mode channels viewer for Unix systems.
Admin web interface for LND, via gRPC. Built with Node.js, express, bootstrap-v4. Test at: https://lnd-admin.chaintools.io/
A drop-in monitoring solution for your lnd node using Prometheus and Grafana. https://blog.lightning.engineering/posts/2019/07/24/lndmon-v0.1.html
Spark is a minimalistic wallet GUI for c-lightning, accessible over the web or through mobile and desktop apps (for Android, Linux, macOS and Windows). It is currently oriented for technically advanced users and is not an all-in-one package, but rather a “remote control” interface for a c-lightning node that has to be managed separately.
LND Builder’s Guide Best Practices
docs.lightning.engineering/advanced-best-practices/advanced-best-practices-overview/channels
A conceptual review of the Lightning Network:
dev.lightning.community/overview/index.html#lightning-network
gRPC API reference documentation for LND
A list about How to get Channel Liquidity fast?
A curated list of awesome Lightning Network resources, apps, and libraries
Jameson Lopp’s curated list of Lightning Network resources
Collection of Alex Bosworth`s online presentations:
A community managed group for the RaspiBlitz Lightning Node:
LND Developer Slack. Find the invite link on:
A subreddit for Bitcoin and Lightning developers to discuss technical topics:
https://github.com/lnbook/lnbook
https://chaincode.applytojob.com/apply/LpQl1a0cvd/Chaincode-Labs-Online-Seminars https://github.com/chaincodelabs/lightning-curriculum