What is the Lightning Network? Fast, cheap bitcoin payments explained
The Lightning Network lets you send bitcoin in seconds for tiny fees by moving payments off the main blockchain. Here is how channels work, which wallets to use and what the trade-offs are.
Bitcoin's main blockchain processes a limited number of transactions, and fees rise when demand is high. Paying for a coffee with an on-chain transaction can cost more than the coffee and take many minutes to confirm. The Lightning Network was built to solve this. It lets people send bitcoin almost instantly, often for a fraction of a cent, while the main blockchain is used only to open and close payment channels.
The basic idea: payment channels
A Lightning channel is a shared account between two parties, locked on the Bitcoin blockchain with a special transaction. Once the channel is open, the two parties can update the balance between them as many times as they like, without writing each update to the blockchain. Only the final balance is settled on-chain when the channel closes.
Imagine Alice opens a channel with 0.01 BTC. She can pay Bob 0.001 BTC, then another 0.0005 BTC, and so on. Each payment is a signed update of the channel balance. Neither party can cheat, because the latest signed state can always be enforced on the blockchain, and trying to publish an old state can be punished.
Routing payments across the network
You do not need a direct channel with everyone you pay. Lightning nodes are connected in a network, and payments can be routed through several channels. If Alice has a channel with a routing node, and that node has a channel with Carol, Alice can pay Carol through it. Routing nodes earn small fees for forwarding payments, and the cryptography ensures they cannot steal the money in transit.
Invoices and Lightning addresses
To receive a Lightning payment, your wallet usually creates an invoice: a long string starting with "lnbc" that encodes the amount, a payment code and an expiry time. The payer scans or pastes it. Invoices are normally single-use.
Lightning addresses look like email addresses, for example name@wallet.com, and let people send you payments without asking for a new invoice each time. They are convenient for tips and recurring payments.
Custodial and self-custodial Lightning wallets
| Custodial Lightning | Self-custodial Lightning | |
|---|---|---|
| Who holds the keys | The service provider | You |
| Setup | Instant, like a payment app | Channel opening may cost a fee |
| Receiving first payment | Usually free | May need a fee for channel liquidity |
| Risk | The provider can freeze or lose funds | You manage backups and keys |
Self-custodial wallets such as Phoenix and Zeus manage channels automatically or semi-automatically. Muun lets you pay Lightning invoices from an on-chain balance using swaps. Custodial wallets are simpler but come with the usual risks of trusting a company with your money.
Liquidity: the concept that confuses beginners
A channel has two sides. To send, you need bitcoin on your side of the channel, called outbound liquidity. To receive, the other side needs funds it can move to you, called inbound liquidity. A new self-custodial wallet with no channels cannot receive until a channel with inbound capacity exists. Modern wallets solve this by having a service open a channel to you on demand, for a fee, when your first payment arrives.
Fees and limits
Lightning payments usually cost very little, often a few satoshis. Costs appear at other moments:
- Opening and closing channels requires on-chain transactions with normal network fees.
- Liquidity services charge for providing inbound capacity.
- Swaps between on-chain and Lightning, such as those offered by Boltz, include a service fee plus network fees.
Large payments can fail if no route has enough capacity. Lightning works best for everyday amounts rather than moving large sums.
Backups and safety
Self-custodial Lightning wallets need more than a recovery phrase in some cases. Channel state changes with every payment, and some wallets also store channel backups. Follow your wallet's backup instructions carefully. Many modern mobile wallets handle this automatically by storing encrypted backups or using designs that rely only on the seed.
Keep Lightning balances to amounts you would carry as spending money. For long-term savings, on-chain bitcoin on a hardware wallet remains the stronger choice.
Where Lightning is used
- Small payments and tips in apps and on social platforms.
- Merchant payments through point-of-sale apps.
- Cheap transfers between exchanges and wallets.
- Cross-border transfers, especially in countries with expensive banking.
Limitations
Lightning still has rough edges. Receiving offline is not possible with every wallet, routing can fail for larger amounts, and running your own routing node requires technical knowledge and capital. Some providers have withdrawn from certain countries because of regulatory uncertainty around Lightning services. Expect occasional failed payments and keep an on-chain fallback.
The short version
The Lightning Network is a second layer on top of bitcoin that moves payments into channels between users. It makes bitcoin payments fast and cheap, with the blockchain used only to open and close channels. Custodial wallets are simpler; self-custodial wallets give you control but involve channel fees and liquidity. Use Lightning for spending and small transfers, and keep savings on-chain.