What Is Bitcoin's Lightning Network?
The Lightning Network is a layer on top of Bitcoin for fast, low-fee payments. Learn how payment channels and routing work, how to use it, and its trade-offs.
Bitcoin's Lightning Network is a second layer built on top of Bitcoin that lets people send bitcoin almost instantly and for very low fees by moving payments through networks of payment channels instead of recording each one on the blockchain. Only channel openings and closings are settled on-chain, so thousands of payments can happen for the cost of a couple of regular transactions.
Bitcoin's base layer prioritizes security and decentralization, which limits how many transactions fit in each block. During busy periods, fees rise and small payments become impractical. Lightning was designed to solve that for everyday payments without changing Bitcoin's core rules. It works well for many uses, but it has trade-offs of its own.
Origins of the Lightning Network
The Lightning Network was proposed in a paper by Joseph Poon and Thaddeus Dryja, first published in 2015. Several independent teams built compatible software, and the network went live on Bitcoin's main network around 2018. Bitcoin's Segregated Witness (SegWit) upgrade in 2017 fixed an issue known as transaction malleability, which made Lightning much more practical to build.
How Lightning Works
Payment channels
A payment channel is like a shared tab between two parties, secured by Bitcoin's rules:
- 1Opening. Two parties lock bitcoin into a shared address with an on-chain transaction.
- 2Updating. They exchange signed updates showing new balances each time one pays the other. These updates aren't broadcast.
- 3Closing. Either party can close the channel, publishing the latest balance to the blockchain.
Each update invalidates the previous one. If someone tries to cheat by publishing an old balance, the other party (or a watchtower acting for them) can claim all the funds in the channel as a penalty, within a set time window.
Routing payments across the network
You don't need a direct channel with everyone you pay. Lightning finds a path through connected channels: you pay A, A pays B, B pays the recipient. Cryptographic locks called hash time-locked contracts (HTLCs) ensure that either the whole payment completes or none of it does, so intermediaries can't take the money.
Intermediate nodes may charge small routing fees.
A simple example
Alice opens a channel with a well-connected node and locks 100,000 satoshis (sats) into it. She buys a coffee from Bob's café, which has a channel with a different node. Her wallet finds a route from her channel through those nodes to Bob, pays a few sats in routing fees and the payment arrives in seconds. Nothing is written to the Bitcoin blockchain. Alice's channel balance simply updates, and she can keep paying from it until she decides to close the channel or top it up.
Invoices
To receive a Lightning payment, you usually generate an invoice: a code or QR code containing the amount and payment details. Invoices often expire after a set time. Some wallets also support reusable payment codes or addresses.
Lightning vs On-Chain Bitcoin
| Feature | On-chain Bitcoin | Lightning Network |
|---|---|---|
| Speed | Block confirmations, about 10 minutes each | Usually seconds |
| Fees | Vary with demand; can be high | Usually very low |
| Best for | Larger, less frequent transfers; savings | Small, frequent payments |
| Record | Every transaction on the blockchain | Only channel opens and closes on-chain |
| Online requirement | No | You or a watchtower should monitor channels |
| Privacy | Public on-chain history | Better in some ways, but not anonymous |
What Lightning Is Used For
- Everyday payments at merchants that accept Lightning.
- Micropayments such as tipping creators or paying per use, which are impractical on-chain.
- Cross-border transfers that settle quickly.
- Moving bitcoin between services that support Lightning, such as some exchanges.
Limitations and Risks
Liquidity management
You can only send up to your balance on your side of a channel, and receive up to the other side's balance. This "inbound" and "outbound" liquidity can be confusing. Many wallets now automate it, sometimes for a fee.
Staying online and backups
Self-custodial Lightning requires monitoring channels to prevent old states being published. Watchtower services can do this for you. Losing your channel data without a backup can lead to losing funds.
Custodial wallets
Many popular Lightning wallets are custodial: a company holds your bitcoin and simply updates balances. That's convenient but carries the same risks as leaving coins on an exchange. Our guide to custodial vs non-custodial wallets explains the trade-off.
Fees to open and close channels
These require on-chain transactions, so when on-chain fees are high, opening or closing channels becomes expensive.
Routing failures and limits
Large payments can fail if no route has enough liquidity. Lightning works best for small to medium payments.
How to Get Started Safely
- 1Choose a reputable wallet from its official source. Decide whether you want custodial convenience or self-custody.
- 2Start with a small amount to learn how invoices, receiving and channel fees work.
- 3Back up your wallet exactly as the wallet instructs, including seed phrase and any channel backups.
- 4Check that the recipient supports Lightning before sending; a Lightning invoice and a Bitcoin address are different things.
- 5Keep larger savings on-chain, ideally in a hardware wallet.
For more background on Bitcoin's scaling debate, read our comparison of Bitcoin vs Bitcoin Cash, and for layer-2 concepts generally, see layer 1 and layer 2 blockchains.
Bottom line
The Lightning Network lets bitcoin move quickly and cheaply by keeping most payments off-chain in payment channels while relying on Bitcoin for final settlement. It's well suited to small, frequent payments, but it adds complexity around liquidity, backups and staying online, and custodial wallets reintroduce counterparty risk. Start small and choose a wallet whose trade-offs you understand.
คำถามที่พบบ่อย
What is the Lightning Network in simple terms?
The Lightning Network is a payment network built on top of Bitcoin. Users lock bitcoin into payment channels, then send payments through those channels almost instantly and for very low fees, without recording each payment on the Bitcoin blockchain. Only opening and closing channels require regular on-chain transactions.
Is Lightning the same as Bitcoin?
Lightning uses real bitcoin, but it is a separate layer with its own software, wallets and invoices. Payments are settled between channel participants and only the final channel balances reach the Bitcoin blockchain. You need a Lightning-compatible wallet to send or receive Lightning payments.
Is the Lightning Network safe?
The protocol is designed so that channel partners cannot steal funds as long as you or a watchtower monitors the blockchain. Risks come from software bugs, losing channel backups, being offline for long periods and using custodial Lightning wallets, where a company holds your bitcoin for you.
Do I need to run a node to use Lightning?
No. Many mobile wallets handle Lightning for you, either by running a lightweight node on your phone or by holding funds custodially. Running your own node gives more control and privacy but requires managing channels and liquidity. Beginners often start with a reputable non-custodial mobile wallet and small amounts.
