The Lightning Network (LN) is a payment protocol built on the
bitcoin
Bitcoin (abbreviation: BTC; Currency symbol, sign: ₿) is the first Decentralized application, decentralized cryptocurrency. Based on a free-market ideology, bitcoin was invented in 2008 when an unknown entity published a white paper under ...
blockchain
The blockchain is a distributed ledger with growing lists of Record (computer science), records (''blocks'') that are securely linked together via Cryptographic hash function, cryptographic hashes. Each block contains a cryptographic hash of th ...
.
It is intended to enable fast transactions among participating nodes (independently run members of the network) and has been proposed as a solution to the
bitcoin scalability problem.
History
Joseph Poon and Thaddeus Dryja published a Lightning Network white paper in February 2015.
Lightning Labs launched the Lightning Network in 2018 with the goal of reducing the cost and time required for cryptocurrency transaction. Specifically, the bitcoin blockchain can only process around 7 transactions per second (compared to
Visa Inc.
Visa Inc. () is an American multinational payment card services corporation headquartered in San Francisco, California. It facilitates electronic funds transfers throughout the world, most commonly through Visa-branded credit cards, debit c ...
, which can process around 24,000 transactions per second). Despite initial enthusiasm for the Lightning Network, reports on social media of failed transactions, security vulnerabilities, and over-complication lead to a decline in interest.
On January 19, 2019, pseudonymous
Twitter
Twitter, officially known as X since 2023, is an American microblogging and social networking service. It is one of the world's largest social media platforms and one of the most-visited websites. Users can share short text messages, image ...
user hodlonaut began a game-like promotional test of the Lightning Network by sending 100,000
satoshis (0.001 bitcoin) to a trusted recipient where each recipient added 10,000 satoshis ($0.34 at the time) to send to the next trusted recipient. The "lightning torch" payment reached notable personalities including former Twitter A.K.A X CEO
Jack Dorsey
Jack Patrick Dorsey (born November 19, 1976) is an American businessperson, who is a co-founder of Twitter, Inc. and its CEO during 2007–2008 and 2015–2021, as well as co-founder, principal executive officer and chairman of Block, Inc. (deve ...
,
Litecoin
Litecoin (Abbreviation: LTC; sign: Ł) is a decentralized peer-to-peer cryptocurrency and open-source software project released under the MIT/X11 license. Inspired by Bitcoin, Litecoin was the second cryptocurrency starting in October 2011. In te ...
Creator
Charlie Lee, Lightning Labs CEO Elizabeth Stark, and
Binance
Binance Holdings Ltd., branded Binance, is the largest cryptocurrency exchange in terms of daily trading volume of cryptocurrencies. Binance was founded in 2017 by Changpeng Zhao, a developer who had previously created high-frequency trading ...
CEO "CZ" Changpeng Zhao, among others.
Design
Andreas Antonopoulos calls the Lightning Network a second layer routing network.
The payment channels allow participants to transfer money to each other without having to make all their transactions public on the
blockchain
The blockchain is a distributed ledger with growing lists of Record (computer science), records (''blocks'') that are securely linked together via Cryptographic hash function, cryptographic hashes. Each block contains a cryptographic hash of th ...
. This is secured by penalizing uncooperative participants. When opening a channel, participants must commit an amount on the blockchain (a ''funding transaction'').
Time-based script extensions like
CheckSequenceVerify
and
CheckLockTimeVerify
make the penalties possible.
Transacting parties use the Lightning Network by opening a payment channel and transferring (committing) funds to the relevant layer-1 blockchain (e.g. bitcoin) under a
smart contract
A smart contract is a computer program or a Transaction Protocol Data Unit, transaction protocol that is intended to automatically execute, control or document events and actions according to the terms of a contract or an agreement. The objective ...
. The parties then make any number of off-chain Lightning Network transactions that update the tentative distribution of the channel's funds, without broadcasting to the blockchain. Whenever the parties have finished their transaction session, they close the payment channel, and the smart contract distributes the committed funds according to the transaction record.
To initiate closing, one node first broadcasts the current state of the transaction record to the network, including a proposed settlement, a distribution of the committed funds. If both parties confirm the proposal, the funds are immediately paid on-chain. The other option is uncooperative closure, for example if one node has dropped from the network, or if it is broadcasting an incorrect (possibly fraudulent) transaction state. In this case settlement is delayed during a dispute period, when nodes may contest the proposal. If the second node broadcasts a more up-to-date
timestamped distribution, including some transactions omitted by the first proposal, then all committed funds are transferred to the second node: this punitive ''breach remedy transaction'' thwarts attempts to defraud the other node by broadcasting out-of-date transactions.
Implementations
Benefits
According to bitcoin advocate
Andreas Antonopoulos, the Lightning Network provides several advantages over on-chain transactions:
*Granularity – According to Andreas Antonopoulos, some implementations of the Lightning Network allow for payments that are smaller than a satoshi, the smallest unit on the base layer of bitcoin.
*Privacy – Lightning network payments may be routed through many sequential channels where each node operator will be able to see payments across their channels, but they will not be able to see the source nor destination of those funds if they are non-adjacent.
*Speed – Settlement time for lightning network transactions is under a minute and can occur in milliseconds.
Confirmation time on the bitcoin blockchain, for comparison, occurs every ten minutes, on average.
*Transaction throughput – There are no fundamental limits to the amount of payments per second that can occur under the protocol. The amount of transactions are only limited by the capacity and speed of each node.
Limitations
The Lightning Network (LN) operates through bidirectional payment channels between two nodes, forming smart contracts that facilitate off-chain transactions. If either party closes a channel, the final state is settled on the Bitcoin blockchain. While this design enables faster and cheaper transactions, the necessity of on-chain transactions to open and close channels introduces scalability constraints. These limitations can be partially mitigated when multiple users who trust each other share a Lightning node.
Lightning Network's dispute resolution mechanism requires participants to monitor the blockchain to detect and respond to potential fraud. This responsibility can be delegated to "watchtower" nodes—trusted third parties that oversee the network on behalf of users. A standard time window, typically 24 hours, is allocated for a participant to contest an attempted fraud once a channel closure is broadcast.
Routing
When a direct payment channel between two parties is unavailable, the Lightning Network facilitates transactions through
multi-hop routing
Multi- hop routing (or multihop routing) is a type of communication in radio networks in which network coverage area is larger than radio range of single nodes. Therefore, to reach some destination a node can use other nodes as relays.
Since the ...
. In this process, payments are forwarded across a series of intermediary nodes, each connected via bidirectional channels. To preserve privacy and security, the network employs an
onion routing
Onion routing is a technique for anonymous communication over a computer network. In an onion network, messages are encapsulated in layers of encryption, analogous to the layers of an onion. The encrypted data is transmitted through a series o ...
protocol, wherein each node in the path decrypts only enough information to determine the next hop, without knowledge of the payment's origin or final destination .
This routing mechanism relies on '
Hashed Timelock Contracts (HTLCs)'', which ensure that payments are either completed in full or fail entirely, preventing partial transfers. HTLCs use
cryptographic hashes and time constraints to secure the transaction across multiple hops.
For successful routing, both the sender and receiver must maintain channels with sufficient liquidity. The sender's node constructs a route by analyzing the network graph to find a viabl
paththat meets criteria such as channel capacity and fee rates. However, due to the private nature of channel balances, the sender may not have complete information about the liquidity available in each channel, leading to potential payment failures
To mitigate this, some implementations incorporate probing mechanisms and probabilistic scoring to estimate the reliability of potential routes based on historical data . Additionally, strategies like multi-path payments (MPP) allow larger transactions to be split into smaller parts, increasing the likelihood of successful routing.
Overall, the Lightning Network's routing protocol enables scalable and private off-chain transactions, though it requires careful management of channel liquidity and network connectivity to ensure optimal performance.
Developer Tools and Simplification Efforts
To address the inherent complexities of operating on the Lightning Network—such as channel management, liquidity allocation, and routing reliability—several initiatives have emerged offering tools and platforms designed to abstract or automate these technical challenges.
Lightspark
Founded in 2022,
Lightspark provides enterprise-grade infrastructure for the Lightning Network. It aims to simplify onboarding and scale Bitcoin payment capabilities for institutions and developers. The platform offers:
* Lightspark Connect – a tool for automated Lightning node deployment.
* Lightspark Predict – a smart routing engine that improves payment reliability by optimizing liquidity paths.
* Developer SDKs and APIs – allowing businesses to integrate Lightning payments into their products without managing underlying node operations. These tools collectively reduce the operational complexity for enterprises, supporting broader adoption of Lightning payments.
Breez SDK
The Breez SDK offers developers a comprehensive solution to integrate self-custodial Lightning payments into applications. It abstracts the complexities of channel management, liquidity provisioning, and node operations, facilitating seamless Bitcoin payment integration.
= Nodeless (Liquid Implementation)
=
The Nodeless implementation leverages the
Liquid Network
Liquid is a state of matter with a definite volume but no fixed shape. Liquids adapt to the shape of their container and are nearly incompressible, maintaining their volume even under pressure. The density of a liquid is usually close to that ...
, a Bitcoin sidechain, to facilitate Lightning payments without requiring users to manage channels or operate nodes. Key features include:
* Submarine Swaps: Utilizes submarine and reverse
submarine swaps to convert between Liquid BTC (L-BTC) and Lightning Network sats, enabling seamless fund movement between networks.
* Protocol Support: Supports various payment protocols, including BOLT11, BOLT12, LNURL-Pay, LNURL-Withdraw, Lightning Address, and on-chain BTC addresses.
* Multi-Asset Support: Offers compatibility with assets like
USDT on the Liquid Network.
* User Experience: Eliminates the need for channel management and setup fees, providing a frictionless experience for end-users.
Native (Greenlight Implementation)
The Native implementation integrates with Blockstream's Greenlight, a
cloud-based
Cloud computing is "a paradigm for enabling network access to a scalable and elastic pool of shareable physical or virtual resources with self-service provisioning and administration on-demand," according to International Organization for ...
, non-custodial Lightning node service. This setup provides each user with a dedicated Lightning node, managed in the cloud but controlled by the user's device. Key features include:
* Dedicated Nodes: Each user operates a personal Lightning node hosted on Greenlight's infrastructure, ensuring autonomy and security.
* Protocol Support: Facilitates payments via BOLT11, LNURL-Pay, Lightning Address, and on-chain BTC addresses.
* Integrated Watchtower: Includes a built-in watchtower service to monitor the blockchain for potential fraud, enhancing security.
* Fiat On-Ramps: Supports third-party
fiat on-ramps, allowing users to convert between fiat currencies and Bitcoin seamlessly.
* Developer Tools: Provides SDK bindings for various programming languages, including
Kotlin,
Swift
Swift or SWIFT most commonly refers to:
* SWIFT, an international organization facilitating transactions between banks
** SWIFT code
* Swift (programming language)
* Swift (bird), a family of birds
It may also refer to:
Organizations
* SWIF ...
,
Python, and
React Native
React Native is an open-source UI software framework developed by Meta Platforms (formerly Facebook Inc.). It is used to develop applications for Android, Android TV, iOS, macOS, tvOS, Web, Windows and UWP by enabling developers to use the R ...
, facilitating integration across platforms.
= Voltage
=
Voltage is a Lightning-as-a-Service (LaaS) provider that launched in 2020. Its mission is to provide enterprises with a Lightning Network solution that enables the settlement of real-time payments with near-zero fees, enabling organizations to send and receive payments while creating new experiences and business models
= Lightning Dev Kit (LDK)
=
LDK is a flexible Lightning implementation with supporting modules. It provides a multi-language native
API
An application programming interface (API) is a connection between computers or between computer programs. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how to build ...
, allowing developers to run a Lightning node on mobile, web, hardware security modules (HSMs), Lightning Service Providers (LSPs), or existing infrastructure.
= Amboss Technologies
=
Amboss harnesses machine learning, including reinforcement learning on network graphs, to develop intelligent tools for the Lightning Network. With over five years of data-driven insights, Amboss drives network growth and unlocks new opportunities as Bitcoin scales globally.
= Strike
=
Strike is a mobile payments app that enables instant transactions via the Lightning Network. It facilitates
swift
Swift or SWIFT most commonly refers to:
* SWIFT, an international organization facilitating transactions between banks
** SWIFT code
* Swift (programming language)
* Swift (bird), a family of birds
It may also refer to:
Organizations
* SWIF ...
, peer-to-peer micropayments in Bitcoin, aiming to make digital assets more accessible to the general public.
Compatible Wallets
Several cryptocurrency wallets offer support for the Lightning Network, enabling instant, low-cost, and scalable Bitcoin transactions. Available options include custodial, non-custodial, and hybrid models, each offering different levels of technical complexity and user control. Below are some of the main wallets currently compatible with the Lightning Network:
* Electrum One of the most traditional wallets in the Bitcoin ecosystem, Electrum offers desktop support for the Lightning Network. It is a non-custodial wallet designed for advanced users, providing full control over funds and a wide range of customization options.
* Phoenix (ACINQ) A non-custodial mobile wallet focused on simplicity. Phoenix manages channel and liquidity configuration automatically, eliminating the need for manual setup. It is developed by ACINQ, a leading company in the Lightning ecosystem.
* Misty Breez A self-custodial wallet built for everyday use. Misty Breez includes features such as point-of-sale (POS) support, podcast streaming with Lightning-based monetization, and automatic backups. It also handles channel and liquidity management without user intervention.
* Muun A hybrid wallet that balances security and ease of use. Muun enables Lightning payments with automatic fallback to on-chain transactions. It is particularly popular in Brazil, especially among beginners.
* BlueWallet A mobile wallet that supports the Lightning Network through connections with external nodes
BlueWalletoperates as a custodial wallet by default but can be configured to connect to private nodes. Although no longer actively maintained, it remains functional.
* Cash App A widely used payment app in the United States, with direct integration of the Lightning Network. Cash App is custodial and focuses on ease of use for mainstream users.
* Klever Wallet A multi-blockchain wallet that supports the Lightning Network
Klever Walleteliminates the need for manual channel, node (nodeless), and liquidity setup, making it suitable for users interacting with multiple blockchain networks beyond Bitcoin.
* Wallet of Satoshi One of the simplest ways to use the Lightning Network
Wallet of Satoshiis fully custodial and ideal for beginners or scenarios where convenience is a priority — such as events, demos, or educational use cases.
Use cases
Since its inception, Bitcoin has been envisioned as a
peer-to-peer
Peer-to-peer (P2P) computing or networking is a distributed application architecture that partitions tasks or workloads between peers. Peers are equally privileged, equipotent participants in the network, forming a peer-to-peer network of Node ...
electronic cash system. A notable early example occurred in May 2010 when
Laszlo Hanyecz
Bitcoin (abbreviation: BTC; sign: ₿) is the first decentralized cryptocurrency. Based on a free-market ideology, bitcoin was invented in 2008 when an unknown entity published a white paper under the pseudonym of Satoshi Nakamoto. Use of bi ...
paid 10,000 BTC for two pizzas—an event now noted annually as ''Bitcoin Pizza Day'' . As Bitcoin’s value and network congestion increased, its use shifted more towards a store of value. However, the development of the Lightning Network (LN) has revitalized Bitcoin’s potential for fast, low-cost, and scalable payments.
The Lightning Network is utilized globally for various practical applications:
* Micropayments and Everyday Commerce: LN enables low-fee transactions suitable for small purchases, from buying digital goods to paying for coffee. Innovative use cases, such as triggering actions like feedin
goatsvia Lightning payments, have demonstrated its versatility.
* Grassroots Economic Initiatives: In
El Zonte
El Zonte is a town in La Libertad Department in El Salvador. A popular tourist destination, El Zonte has been described as a "world surfing mecca". Playa El Zonte ( English: ''El Zonte Beach''; nicknamed Bitcoin Beach) became one of the first lo ...
,
El Salvador
El Salvador, officially the Republic of El Salvador, is a country in Central America. It is bordered on the northeast by Honduras, on the northwest by Guatemala, and on the south by the Pacific Ocean. El Salvador's capital and largest city is S ...
—also known as
Bitcoin Beach—local communities began using LN to transact in Bitcoin for groceries, school fees, and services, showcasing how LN could support circular economies in developing regions.
* Global Remittances and Cross-Border Payments: Lightning offers an efficient alternative to traditional
remittance
A remittance is a non-commercial transfer of money by a foreign worker, a member of a diaspora community, or a citizen with familial ties abroad, for household income in their home country or homeland.
Money sent home by migrants competes ...
services by enabling near-instant global transfers without intermediaries or high fees.
* Mobile and Point-of-Sale Payments:
Mobile wallets integrating Lightning make it feasible to use Bitcoin in physical stores and daily purchases.
* Tipping and Content Monetization: LN is also used for micro-tipping on social media platforms and blogs, offering an alternative to traditional ad-driven or subscription-based models.
In
Brazil
Brazil, officially the Federative Republic of Brazil, is the largest country in South America. It is the world's List of countries and dependencies by area, fifth-largest country by area and the List of countries and dependencies by population ...
, several communities have adopted the Lightning Network to enhance local economies:
*
Rolante, Rio Grande do Sul: This town has become a leader in Bitcoin adoption, with over 200 businesses accepting Bitcoin payments. The initiative, led by the "Bitcoin é Aqui
" project, has transformed Rolante into a model for integrating cryptocurrency into daily life.
*
Jericoacoara, Ceará: Known as
Bitcoin Beach Brazi," this coastal village has implemented LN to facilitate transactions among residents and tourists. The community has also engaged in educational initiatives, such as distributing
Bitcoin
Bitcoin (abbreviation: BTC; Currency symbol, sign: ₿) is the first Decentralized application, decentralized cryptocurrency. Based on a free-market ideology, bitcoin was invented in 2008 when an unknown entity published a white paper under ...
wallets to students and teachers.
*
Santo Antônio do Pinhal, São Paulo: Inspired by Rolante's success, this town has embraced Bitcoin adoption, with numerous establishments accepting Bitcoin payments via Lightning Network , aiming to promote cryptocurrency
tourism
Tourism is travel for pleasure, and the Commerce, commercial activity of providing and supporting such travel. World Tourism Organization, UN Tourism defines tourism more generally, in terms which go "beyond the common perception of tourism as ...
.
*
São Thomé das Letras, Minas Gerais: This tourist destination has integrated Lightning Network into its local economy, with businesses accepting Bitcoin and educational programs teaching residents about cryptocurrency.
As Lightning infrastructure continues to improve, adoption is expanding across both emerging economies and industrialized nations, reinforcing its role in Bitcoin’s usability for day-to-day transactions and financial empowerment.
References
External links
lightning.network
{{Cryptography navbox
Cryptocurrencies