โก Lightning Network Lightning Network
A layer 2 payment system built on top of Bitcoin. It lets people send near-instant, very cheap bitcoin payments off-chain, and writes to the main blockchain only when a payment channel opens or closes.
๐บ The simple version โ it works like a bar tab
You don't swipe your card for every drink at a bar. You open a tab, order freely all night, and settle once at the end. Lightning works the same way for bitcoin. Two people lock some bitcoin into a shared account called a payment channel, then send each other as many payments as they want โ instantly and almost for free โ by just updating who owns what inside the channel. Only the final balance gets written to the blockchain when they close the channel.
๐ What is a payment channel?
Opening a channel means two people lock bitcoin into a shared 2-of-2 address (an account that needs both signatures to spend). That's one on-chain transaction. After that, every payment between them is just a quick update to the running balance โ none of those touch the blockchain. When they're done, closing the channel writes the final split back on-chain. So a thousand back-and-forth payments cost only two blockchain transactions: open and close.
๐ธ๏ธ You don't need a channel with everyone
Here's the clever part: you can pay people you've never opened a channel with. If Alice has a channel with Bob, and Bob has one with Charlie, then Alice can pay Charlie through Bob. All the channels together form a mesh, and payments hop across it. This is called routing, and it's why a handful of channels can connect you to the whole network.
๐ Why the in-between nodes can't steal your money
A routed payment isn't simply handed to Bob and hoped for. It's locked with an HTLC (Hash Timelock Contract): the money only unlocks if a secret is revealed, and there's a deadline attached. Either the full path from sender to receiver completes at once, or the whole thing is refunded. An in-between node can forward the payment correctly to earn a tiny fee, or do nothing โ it can never walk away with the funds.
โก Where a beginner runs into it
| Situation | What Lightning does |
|---|---|
| โ Buying coffee with bitcoin | Settles in seconds for a fraction of a cent, instead of waiting ~10 minutes and paying a high fee |
| ๐ธ Tipping or small payments | Makes tiny micropayments practical, which normal on-chain fees would make pointless |
| ๐ฑ A Lightning-enabled wallet or app | Sends and receives plain BTC instantly between people, exchanges, and services |
โก Lightning is the best-known layer 2 for Bitcoin โ it exists to fix Bitcoin's slow confirmations, limited throughput, and high fees for small amounts.
๐จ Things beginners should know
- ๐ง Channel liquidity โ You can only send up to what's locked in your channels, so very large payments may not fit
- ๐ Capital is tied up โ Bitcoin you commit to a channel is locked there until you close it
- ๐ข Hub concentration โ Well-connected routing hubs can grow large, raising concerns about centralization over time
- ๐ Channels need watching โ You (or your wallet's watchtower) must stay alert to catch any attempt to close a channel with an old, false balance
โ FAQ
- If my payment routes through strangers' nodes, can they steal my bitcoin?
- No. A routed payment is locked behind a secret and a time limit (an HTLC), so an in-between node can only pass it along correctly or get nothing. The whole path either completes or your money is refunded โ you don't have to trust the people in the middle.
- Is Lightning a separate coin or token?
- No. There is no 'Lightning coin.' It moves real bitcoin (BTC) faster and cheaper by handling payments off-chain. You're always sending and receiving plain BTC.
- Why would I use Lightning instead of a normal bitcoin transaction?
- A normal bitcoin payment can take about 10 minutes to confirm and the fee can be too high for small amounts. Lightning makes tiny payments practical โ tipping, buying coffee, or sending small sums โ by settling them off-chain in seconds for a fraction of a cent.