Bitcoin VerityOpen comparator

Level 6 · Use and security

How the Lightning Network works

Payment channels, routed and atomic transfers, invoices, directional liquidity and why opening or closing a channel still touches the blockchain.

Article
67
Reading time
15 minutes
Reviewed
8 September 2026

In a nutshell

Lightning lets participants update balances inside Bitcoin-backed payment channels without publishing every update as an on-chain transaction. Payments can route across several channels through conditional transfers. Success depends on available directional liquidity, and channel opening or closing ultimately uses Bitcoin's blockchain.

01

A channel is a changing Bitcoin contract

Two parties commit bitcoin to an on-chain funding output and keep signed commitment states describing how that value can be settled. As they pay, they replace the current state with a newer one instead of broadcasting every update. A cooperative close publishes a final settlement transaction; a unilateral close can enforce the latest valid state under protocol rules.

Lightning therefore does not create separate coins or remove the base layer. It moves frequent balance updates off-chain while retaining an on-chain enforcement route. Opening, closing and exceptional resolution consume block space and require appropriate fees.

02

A payment can cross several channels

The sender does not need a direct channel with the recipient. A wallet searches for a route through forwarding nodes. Hash Time-Locked Contracts make the linked transfer atomic: either the required condition completes the payment along the route, or the attempted parts fail and unwind rather than leaving a normal partial payment.

Onion routing limits what each forwarding node learns: it mainly knows the adjacent hop and its instructions, not necessarily the full route. This improves privacy but does not make Lightning perfectly anonymous; timing, amounts, endpoints and wallet-service data can still reveal information.

  • the receiver creates or supplies a payment instruction
  • the sender's wallet searches for a route
  • the transfer either settles in full or fails
03

Liquidity has a direction

A channel's total capacity is not the same as the amount one side can send or receive. If most of the balance is already on the remote side, the local node may have little outbound liquidity; if it is mostly local, receiving may require inbound liquidity. Routes fail when any hop lacks enough usable balance or is offline.

Wallets may manage channels and liquidity automatically, use a Lightning service provider, or expose controls to the user. A failed attempt does not necessarily mean the network or invoice is invalid; another route or liquidity change may succeed. Fees can include base and amount-proportional components set along the route.

04

Invoices are payment instructions, not addresses forever

The widely used BOLT 11 invoice can encode a network, amount, payment hash, destination information and expiry. Some fields are optional. The payer should check the displayed recipient, amount and expiry in the wallet, just as an on-chain payer checks destination and value.

Lightning is suited to smaller, rapid payments, but finality and recovery expectations differ from card payments. Once settled, there is no built-in chargeback authority. Begin with small values and use on-chain Bitcoin when the wallet, recipient or risk profile does not support the intended Lightning operation.

Level 6 · Use and security

Terms to know

Payment channel
A Bitcoin-backed arrangement whose participants can update their balance allocation without publishing every update on-chain.
HTLC
A hash-and-time-conditioned transfer used to link Lightning payment hops atomically.
Liquidity
Usable balance in the needed direction across channels for sending or receiving a payment.

Common misconception

Lightning transactions are unrelated to Bitcoin's blockchain.

A more accurate explanation

Channel balances are backed and enforceable through Bitcoin transactions. Routine updates stay off-chain, but funding, closure and disputes ultimately use the base layer.

A more accurate explanation

Does Lightning guarantee every payment succeeds instantly?

No. A route can lack directional liquidity, a node can be unavailable or an invoice can expire. Wallets retry and manage these constraints, but speed and success are operational outcomes, not absolute guarantees.

67

Key takeaways

  1. 01Channels update a Bitcoin-backed balance without publishing every payment.
  2. 02HTLCs allow an all-or-nothing payment across multiple forwarding nodes.
  3. 03Channel capacity is directional; receiving and sending need different liquidity positions.
  4. 04Invoices, channel opening and channel closing each have their own checks and costs.

A child-friendly recap

In very simple terms

Lightning updates channel balances without putting every payment on the blockchain. A payment may cross several nodes and succeeds as a whole or fails. It needs liquidity in the right direction.

Reviewed: 8 September 2026

Sources and further reading

Sources support particular facts and definitions; listing one does not mean the editors endorse every view of its author.

01
Lightning BOLTs: protocol introductionLightning Network Specifications
github.com
02
Lightning Labs: network overviewLightning Labs
docs.lightning.engineering
03
BOLT 11: invoice encodingLightning Network Specifications
github.com

Educational material, not an investment recommendation.