What is Lightning Network?

Guides 2025-09-03 17:05

Proposed in a 2016 white paper, the Lightning Network (LN) is a layer-2 solution built on top of Bitcoin.

What is Lightning Network?

Why was Bitcoin's Lightning Network created?

Lightning Network was created in response to scalability issues with Bitcoin, namely the speed and cost of Bitcoin transactions.

Bitcoin’s current theoretical maximum transactions per second (TPS) is 10, though in reality it is between 3 and 7. Contrast this with traditional payment processors like VISA, which handled on average 6,000 TPS in 2020 (based on VISA’s claim of 188 billion transactions a year).

Bitcoin’s transaction fees can vary wildly depending on the current demand to use the network. For instance, on April 20th 2021 average transaction fees were in excess of $50, while on August 9th 2021, the average was around $2.50. For large transactions, such as bank transfers or international remittance, Bitcoin’s speed and cost is comparable or superior to alternatives. But if Bitcoin is to be used for everyday payments (so-called micro-transactions, e.g., a cup of coffee, gas), the transaction speed must increase and transaction costs must decrease drastically.

Lightning Network in Theory

To understand how LN works, and the current challenges of LN, we need to talk about Bitcoin. The limiting factor of the Bitcoin network is that every transaction must be put in a new block on chain. Since blocks are added to the chain approximately every 10 minutes, there is a hard limit to the number of transactions possible without significantly altering the Bitcoin protocol.

Read more: How do Bitcoin transactions work?

Debates on major reworkings of the Bitcoin protocol have happened before and resulted in 'hard forks,' most notably the creation of Bitcoin Cash. The Lightning Network, rather than creating a new blockchain, is a layer-2 solution. This means that it allows the Bitcoin protocol to remain relatively unchanged, but provides the benefits major reworkings could bring -- in theory, at least.

LN works by setting up a payment channel between two parties, where only the first and last transaction are put on the Bitcoin blockchain. Any number of transactions between the first and last will happen off chain, which means those transactions are not limited by the Bitcoin protocol.

To start a payment channel, both parties must commit an amount of Bitcoin. That Bitcoin is held and cannot be released as long as the payment channel remains open. The total amount of Bitcoin that can be transferred through this channel is the total amount of Bitcoin committed. Let’s look at an example to illustrate this:

Alice and Bob want to form a payment channel with each other. Alice commits 10 BTC and Bob commits 5 BTC into the payment channel. An opening transaction holding Alice and Bob’s combined 15 BTC is put onto the Bitcoin blockchain. Once that transaction has been added to the blockchain, which can take 10 minutes or more, Alice and Bob can transact an unlimited number of times at much faster speeds and effectively zero cost. Below are transactions between Alice and Bob:

  1. Alice sends Bob 1 BTC Alice: 9 BTC Bob: 6 BTC
  2. Alice sends Bob 2 BTC Alice: 7 BTC Bob: 8 BTC
  3. Bob sends Alice 3 BTC Alice: 10 BTC Bob: 5 BTC
  4. Bob sends Alice 1 BTC Alice: 11 BTC Bob: 4 BTC

When one or both wish to close the channel, a closing transaction is sent to the blockchain with the final balances of Alice and Bob. In this case, Alice’s final balance is 11 BTC and Bob’s is 4 BTC.

What if Alice wants to transact with Carol? Well, it so happens that Bob has a payment channel with Carol, so Alice transacts with Bob, and Bob passes the transaction on to Carol. Note that in this scenario, Bob might take a small payment for passing on the transaction. Over time, by the theory of six degrees of separation, LN allows Alice to transact with anyone else.

Lightning Network node mesh network Node A transacts with node Q despite only having direct payment channels with nodes C and B.

Lightning Network in Practice

LN is a relatively new protocol. It is faced with many challenges ranging from usability to security.

There are concerns about how easy it is to run a LN node. For LN to be successful, it requires a robust network of Bitcoin nodes running the LN protocol. Running a LN node can be quite difficult and it could be the case that there are payment incentive problems for running smaller nodes. It can be argued that running LN is not too much more difficult than running a full bitcoin node, though. However, since LN is mostly targeted at micro-transactions, the day-to-day experience with LN will be through LN-enabled wallets. Unlike some of the more established Bitcoin wallets, the newness of these LN-enabled wallets means there are tradeoffs between custodial and non-custodial versions. The non-custodial LN wallets are harder to use -- more confusing, less straightforward. The custodial options are easier to use, but you must rely on a third-party with your Bitcoin.

Read more: Understand the difference between custodial and non-custodial wallets, and how it relates to economic freedom.

LN must also contend with competitors. As of February 2024, LN has locked up approximately 5,000 BTC. This might sound like a lot, but by comparison, over 150,000 Bitcoin is locked up on Ethereum (WBTC, wrapped Bitcoin) as of February 2024. Since block times on Ethereum are approximately every 14 seconds as opposed to Bitcoin’s 10 minutes, it already is much faster to transact Bitcoin via WBTC on the Ethereum network. Further, it's conceivable that Ethereum projects like ETH 2.0 and Ethereum Plasma will reduce transaction fees enough to make the Lightning Network unnecessary and obsolete. It’s also important to remember that using WBTC brings with it all of the massive benefits of access to DeFi, which LN does not.

Lastly, and most worryingly, LN has been faced with a number of vulnerabilities. These include:

  • Griefing attacks: Funds aren’t lost, but it causes the victim's Lightning funds to be frozen so that the payment channel cannot process any transactions.
  • Flood and loot: An attacker forces many victims to claim their funds from the blockchain at the same time (flood). The attacker uses this congestion to steal funds that were unable to be claimed before the deadline (loot).
  • Time-dilation attacks: An attacker lengthens the time a victim becomes aware of new blocks by delaying block delivery.
  • Pinning attacks: An attacker tricks a victim into closing their LN channel improperly and steals individual transactions.

Work Yet to be Done on Bitcoin Lightning Network

While LN suffers from vulnerabilities, no one has yet to exploit them. It is likely that since the expertise required to pull off these vulnerabilities is so high, none have done it. LN developers are confident that finding these vulnerabilities will only make the network stronger - that it is a necessary phase of growth. The developers are optimistic about creating various fixes for the vulnerabilities they have found so far, though pinning attacks and time-dilation attacks will require tweaks to both LN implementations and Bitcoin Core at the same time.

The Lightning Network of today is faced with many challenges, but the protocol is still relatively young and these kinds of issues are to be expected. Lightning developers will continue to improve the protocol and may will be able to solve the issues to help scale Bitcoin on layer-2.

Read more: Understand the differences between Bitcoin and Bitcoin Cash, and why Bitcoin Cash is largely serving a different use case.

For a sober 10,000 foot assessment of the Lightning Network, written by a full-time Bitcoin Core contributor nonetheless, check out Antoine Riard’s excellent post.

Share to:

This content is for informational purposes only and does not constitute investment advice.

Curated Series

SuperEx Popular Science Articles Column

SuperEx Popular Science Articles Column

This collection features informative articles about SuperEx, aiming to simplify complex cryptocurrency concepts for a wider audience. It covers the basics of trading, blockchain technology, and the features of the SuperEx platform. Through easy-to-understand content, it helps users navigate the world of digital assets with confidence and clarity.

How do beginners trade options?How does option trading work?

How do beginners trade options?How does option trading work?

This special feature introduces the fundamentals of options trading for beginners, explaining how options work, their main types, and the mechanics behind trading them. It also explores key strategies, potential risks, and practical tips, helping readers build a clear foundation to approach the options market with confidence.

What are the risks of investing in cryptocurrency?

What are the risks of investing in cryptocurrency?

This special feature covers the risks of investing in cryptocurrency, explaining common challenges such as market volatility, security vulnerabilities, regulatory uncertainties, and potential scams. It also provides analysis of risk management strategies and mitigation techniques, helping readers gain a clear understanding of how to navigate the crypto market safely.

Bitcoin historical price data and trends

Bitcoin historical price data and trends

This special feature gathers multiple articles on Bitcoin’s historical price data, analyzing past trends, market cycles, and key events that shaped its value. It also explores factors influencing price movements, providing readers with insights into Bitcoin’s long-term performance and market patterns.

Detailed Illustrated Guide to Contract Trading

Detailed Illustrated Guide to Contract Trading

This collection, "Detailed Illustrated Guide to Contract Trading," explains the fundamentals of contract trading, including futures and margin trading. It uses clear illustrations to simplify key concepts, risk management strategies, and order types, making it accessible for both beginners and experienced traders.