Lightning Network

The Lightning Network is a Layer 2 payment protocol built on top of Bitcoin. It lets users send bitcoin through off-chain payment channels, allowing near-instant, low-fee payments that touch the main blockchain only when a channel is opened or closed.

The Lightning Network works through payment channels. Two parties lock bitcoin into a shared 2-of-2 multisignature address with a single on-chain transaction. After that, they can send funds back and forth many times by exchanging signed updates to the channel's balance, without broadcasting each one to the blockchain. When the channel is closed, the final balance is settled on Bitcoin's main chain. Payments can also hop across several connected channels. Hash time-locked contracts (HTLCs) ensure that the nodes forwarding a payment cannot take the funds along the way.

For users, this means payments that settle in seconds, usually with fees well below those of on-chain transactions, which makes very small payments practical. For example, someone with a Lightning wallet can scan a café's QR-code invoice and pay for a coffee almost instantly. Neither side needs a direct channel with the other, because the payment is routed through other nodes.

Lightning is not a separate coin. The funds are ordinary bitcoin, often measured in satoshis. Its trade-offs include liquidity limits, since a channel can only send or receive up to the balance available on each side. Users also need to watch for a counterparty broadcasting an outdated channel state, a task some delegate to services called watchtowers. Many of the simplest Lightning wallets are custodial, meaning a third party holds the funds, so it is worth checking who controls the keys.

Learn more

Related terms