What Is the Lightning Network?

The Lightning Network is a Layer 2 payment protocol built on top of Bitcoin. It allows two parties to transact instantly and at near-zero cost by opening a direct payment channel between them. Transactions happen off the main blockchain and are only settled on-chain when the channel is closed. This makes Bitcoin practical for everyday spending - from buying coffee to streaming micropayments.

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:

  1. Alice and Bob open a channel by locking some Bitcoin into a shared on-chain transaction (the "funding transaction")
  2. They can now send Bitcoin back and forth instantly, off-chain, by signing updated balance states
  3. These off-chain transactions are instant and free (or nearly free)
  4. 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?

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

Frequently Asked Questions

What is the Lightning Network in simple terms?
The Lightning Network is a payment layer built on top of Bitcoin that lets two parties transact instantly and cheaply without recording every transaction on the main blockchain. Think of it as a running tab - you open a channel, make many transactions off-chain, then settle the final balance on Bitcoin.
How fast is the Lightning Network?
Lightning payments settle in milliseconds - essentially instant. This compares to Bitcoin's main chain which takes 10 minutes per block confirmation.
How cheap are Lightning transactions?
Lightning transaction fees are typically a fraction of a cent - often under 1 satoshi. This makes micropayments practical for the first time.
Is Lightning Network safe?
Lightning is secured by the Bitcoin blockchain. Channels are opened and closed with on-chain transactions and use cryptographic contracts (HTLCs) to ensure funds can only be claimed by the correct party.
Do I need Bitcoin to use Lightning?
Yes. The Lightning Network is built on Bitcoin and uses Bitcoin (in satoshis) for all payments. To open a channel, you lock some Bitcoin into an on-chain transaction, which becomes your channel capacity.