What Is the Lightning Network?
Bitcoin's base layer prioritizes security and decentralization over speed and cost, processing about 7 transactions per second. The Lightning Network solves this without changing Bitcoin's core rules - it adds a payment layer on top, the same way the internet has layers built on top of each other.
Why Does Bitcoin Need a Layer 2?
Bitcoin's blockchain settles transactions in roughly 10-minute blocks and can handle a limited number of transactions per block. On-chain fees can rise significantly during periods of high demand. For buying coffee or making micropayments, waiting 10 minutes and paying several dollars in fees is impractical.
The Lightning Network addresses this without compromising Bitcoin's base layer security. Bitcoin's rules - the 21 million cap, proof of work, decentralization - stay completely intact.
How Do Payment Channels Work?
A payment channel is a two-party agreement locked with a Bitcoin transaction:
- Alice and Bob open a channel by locking some Bitcoin into a shared on-chain transaction (the "funding transaction")
- They can now send Bitcoin back and forth instantly, off-chain, by signing updated balance states
- These off-chain transactions are instant and free (or nearly free)
- When they're done, either party can close the channel by broadcasting the final balance to the Bitcoin blockchain
Only the opening and closing transactions touch the main blockchain. Everything in between happens privately between the two parties.
What Is Lightning Network Routing?
You don't need a direct channel with everyone you want to pay. The Lightning Network routes payments through a web of connected channels. If Alice has a channel with Bob, and Bob has a channel with Carol, Alice can pay Carol through Bob - without Bob being able to steal the funds (thanks to cryptographic contracts called HTLCs).
This routing makes the Lightning Network work like a global payment mesh. You connect to a few well-connected nodes and can reach almost anyone on the network.
What Are Lightning Network Use Cases?
- Micropayments - Pay fractions of a cent for individual articles, API calls, or content
- Instant retail payments - Bitcoin payments that settle in seconds, not minutes
- Streaming payments - Pay per second for services (podcasting apps like Fountain use this)
- International remittances - Send money globally in seconds with near-zero fees
- Bitcoin circular economies - Countries like El Salvador use Lightning for everyday Bitcoin spending
Bitcoin From Scratch Includes a Full Lightning Network Module
The bonus section of Bitcoin From Scratch covers the Lightning Network in 4 dedicated 3D animated lessons - how payment channels work, how routing works, and how to actually use it. It's included with the course at no extra cost.
Start Bitcoin From Scratch - $97