A Beginner's Guide to Bitcoin's Lightning Network

Beginner
Жаңартылды May 15, 2024
15m

Key Takeaways

  • Layer 2 solutions were developed to address the inherent scalability limitations of blockchain technology, allowing networks to process more transactions without altering the underlying protocol.

  • The Lightning Network is a layer 2 scaling solution built on top of Bitcoin that enables near-instant peer-to-peer payments without requiring block confirmation, making it suitable for everyday micropayments.

  • It secures payments using multisignature addresses and Hash Timelock Contracts (HTLCs), which enforce honest behavior between channel participants without relying on a trusted third party.

  • By late 2025, the Lightning Network peaked at over 5,600 BTC in capacity, with major platforms including Coinbase, Revolut, and Binance integrating it for payments. The January 2025 launch of Taproot Assets also enabled USDT stablecoin transfers over Lightning for the first time.

  • The Lightning Network has known limitations: channel liquidity caps restrict payment sizes, and network effects may encourage large centralized routing hubs, which could concentrate transaction flow and create censorship risks.

Binance Academy courses banner

What Is the Lightning Network?

Cryptocurrencies have some pretty unique properties. They can't be hacked or shut down easily, and anyone can use them to transmit value around the globe without a third party's intervention.

To ensure that these features remain, significant trade-offs must be made. Since many nodes are responsible for running a cryptocurrency network, throughput is limited. As a result, the number of transactions per second (TPS) a blockchain network can process is relatively low for a technology that aims to be adopted by the masses.

To overcome the inherent limitations of blockchain technology, a number of scalability solutions have been proposed to increase the number of transactions that a network can handle. In this article, we'll take a deep dive into the Lightning Network, one such extension of the Bitcoin protocol.

The Lightning Network is a network that runs on top of a blockchain to facilitate fast peer-to-peer transactions. It's not exclusive to Bitcoin, other cryptocurrencies have integrated it.

You might be wondering what we mean by "runs on top of a blockchain." The Lightning Network is what's called an off-chain or layer 2 solution. It allows individuals to transact without having to record every transaction on the blockchain.

The Lightning Network is separate from the Bitcoin network, it has its own nodes and software, but it nonetheless communicates with the main chain. To enter or exit the Lightning Network, you need to create special transactions on the blockchain.

What you're actually doing with your first transaction is building a sort of smart contract with another user. Just think of the smart contract as holding a private ledger for you and another user. You can write many transactions to this ledger. They're only visible to you and your counterparty, but neither of you can cheat due to some peculiar features of the setup.

This mini-ledger is called a channel. Say Alice and Bob put 5 BTC each into the smart contract. In their channel, they'd both have a balance of 5 BTC. Alice could then write to the ledger "pay 1 BTC to Bob." Now, Bob has 6 BTC on his side, and Alice has 4. Then, Bob could send 2 BTC back to Alice at a later date, updating the balances to 6 BTC on Alice's side and 4 BTC on Bob's. They can continue to do this for a while.

At any time, either can publish the current state of the channel to the blockchain. At that point, the balances on each side of the channel are allocated to their respective parties on-chain.

True to the name, Lightning transactions are lightning-fast. There are no block confirmations to wait for, payments can be made as fast as your internet connection will permit.

Why Is the Lightning Network Necessary?

Coordinating changes to a blockchain as large as Bitcoin is complex. Any modifications carry the risk of hard forks and potentially serious bugs. With so much value at stake, experimentation at the protocol level is risky.

When you move that experimentation off the blockchain, you gain significantly more flexibility. If something goes wrong with a layer 2 solution, it has no impact on the underlying Bitcoin network. You can read more about how layer 1 vs. layer 2 scaling solutions differ in their approach to this tradeoff.

There's no obligation to switch from the old way of doing things, either. On-chain transactions continue to work as normal, but users now have the option of transacting off-chain, too.

There are several benefits to using the Lightning Network. We'll look at some of the main ones below.

Scalability

Bitcoin blocks are created approximately every ten minutes and can only hold so many transactions. Block space is a scarce resource, so you must bid against other users to have yours included in a timely manner. Miners care, first and foremost, about getting paid, so they'll include transactions with higher fees first.

When there aren't many users trying to send funds at the same time, this isn't a major issue. You can set a low fee, and you're likely to have the transaction included in the next block. But when too many users broadcast transactions simultaneously, the average fee can rise significantly. During peak periods, such as the 2017 bull market and April 2021, average Bitcoin transaction fees surpassed $50-60.

That might seem manageable for transactions moving large amounts, but for smaller payments it isn't practical. Paying a $10 fee to buy a $3 coffee makes little economic sense.

With the Lightning Network, you still pay two fees, one to open your channel and another to close it. But you and your counterparty can make thousands of transactions for free once the channel is open. Once you're finished, you just need to publish the final state to the blockchain.

If more users rely on off-chain solutions like the Lightning Network, block space will be used more efficiently. Low-value, high-frequency transfers can be handled in payment channels, while block space is used for larger transactions and channel opening/closing. This could allow the system to scale to a much wider user base over time.

Micropayments

There's a minimum amount of Bitcoin you can send in a transaction, approximately 0.00000546 BTC. The Lightning Network allows you to push the limits to transact the smallest unit currently available: 0.00000001 BTC, or one satoshi.

Lightning is well-suited to micropayments. The fees on regular transactions make it impractical to send tiny amounts on the main chain. Within a channel, however, you're free to send a fraction of a fraction of a Bitcoin at minimal cost.

Micropayments are suited to a range of use cases. Some see them as a potential alternative to subscription-based models, where users pay tiny amounts each time they use a service rather than a flat monthly fee.

Privacy

A secondary benefit of the Lightning Network is that it can offer users a high degree of confidentiality. Parties do not need to make their channels known to the broader network. While you may be able to look at the blockchain and identify that a particular transaction opened a channel, you won't necessarily be able to tell what transactions are taking place inside it. If participants choose to keep their channel private, only they will know what's happening.

If Alice has a channel with Bob and Bob has a channel with Carol, Alice and Carol can send payments to each other via Bob. You can imagine this expanding into a sprawling network of interconnected payment channels. In such a setup, it would be difficult to determine who Alice ultimately paid once a channel is closed.

How Does the Lightning Network Work?

We've explained how the Lightning Network relies on channels between nodes at a high level. Let's now take a look under the hood.

Multisignature addresses

A multisignature (or multisig) address is one that multiple private keys can spend from. When creating one, you specify how many private keys can spend the funds and how many of those keys are required to sign a transaction. For instance, a 1-of-5 scheme means five keys can produce a valid signature and only one is needed. A 2-of-3 scheme indicates that, out of three possible keys, any two are required to spend the funds.

To initialize a Lightning channel, participants lock up funds in a 2-of-2 scheme. There are only two private keys capable of signing, and both are needed to move coins. Alice and Bob are planning to make many payments to each other, so they decide to open a Lightning Network channel.

They both deposit 3 BTC each into the jointly-owned multisig address. Bob can't move funds out of the address without Alice agreeing, or vice versa.

In principle, they could track balances on a shared piece of paper, starting at 3 BTC each and updating as payments are made. But that relies on both parties cooperating. If Alice ends up with 6 BTC and Bob with none, Bob has no incentive to release the funds. The Lightning Network solves this with a cryptographic enforcement mechanism.

Hash Timelock Contracts (HTLCs)

That mechanism is a Hash Timelock Contract (or HTLC). The term may sound complex, but it's a fairly straightforward concept. It combines two technologies, hashlocks and timelocks, to enforce honest behavior in payment channels.

A hashlock is a condition on a transaction: you can only spend funds by proving you know a secret. The sender hashes a piece of data and includes the hash in the transaction. The only way the receiver can spend it is by providing the original data that matches the hash, and the only way they get that data is if the sender provides it.

A timelock is a condition that prevents you from spending funds before a certain time. It's specified either as an actual timestamp or a specific block height.

HTLCs combine hashlocks and timelocks to create conditional payments: the receiver must provide a secret before a deadline, or the sender can reclaim the funds. This mechanism is what prevents either party from cheating the other.

Opening and closing channels

Alice and Bob create transactions that fund the multisignature address they'll share. But those transactions aren't published to the blockchain yet, a commitment transaction must be set up first to protect each party in case the other becomes unresponsive.

Each party generates a secret and shares only its hash with the other. They then create a pair of commitment transactions, each half-signed, before publishing their funding transactions to the blockchain. The commitment transactions have special spending conditions:

For the transaction Alice signed and gave to Bob, the multisig output can be spent:

1. By both parties cooperatively.

2. By Bob alone, after a timelock expires.

3. By Alice immediately, if she knows Bob's secret.

Once both parties have exchanged these partially-signed commitment transactions, it's safe to publish the funding transactions to the blockchain. The channel is now open. Any time Alice wants to make a new payment to Bob, they create a new pair of commitment transactions, exchange old secrets (which would allow the other to claim funds if an old state is broadcast), and proceed.

Either party can close the channel at any time by broadcasting the latest commitment transaction. A cooperative close, where both parties sign together, is the fastest method. If one party becomes unresponsive, the other can still reclaim their funds by waiting out the timelock.

How does the Lightning Network prevent cheating?

What stops Bob from broadcasting an old commitment transaction where he had a higher balance? Nothing prevents him from trying, but doing so is extremely costly. If he broadcasts a stale transaction, Alice will have a window (while the timelock runs down) to broadcast the attack vector response using the secret Bob revealed when they updated the channel. This allows Alice to claim Bob's funds entirely. The punishment mechanism makes cheating economically irrational.

Routing payments

You don't have to open a direct channel with every person you want to pay. If Alice has a channel with Bob and Bob has one with Carol, Bob can route payments between Alice and Carol. This can work across multiple hops, meaning Alice can pay anyone to whom a path exists across the network.

For their role in routing, intermediaries may take a small fee. On the base chain, fees are based on transaction size in bytes, value being transmitted doesn't matter. In contrast, Lightning fees can reflect local and remote balances. When a routing node pushes funds to one side of a channel, it reduces its own capacity in that direction. Nodes may charge a routing fee to compensate for this reduction in liquidity.

Limitations of the Lightning Network

The Lightning Network has its own shortcomings that may limit its long-term scalability.

Usability

Bitcoin can be unintuitive for beginners, and Lightning adds additional complexity: users need to open channels, manage inbound and outbound capacity, and maintain an online node. Improvements are constantly being made to reduce these barriers, and many wallets now handle channel management automatically.

Liquidity

You can't spend more than you have locked into a channel. If your local balance is depleted, you'll either need to close the channel or wait until you receive a payment through it. Your path is also limited by the capacity of each channel along the route, even if one channel is large, a bottleneck earlier in the path can cap what you can send.

Centralized hubs

Because large routing hubs with deep liquidity tend to attract more traffic, there's a concern that the network may become increasingly reliant on a small number of well-connected entities. If these hubs go offline or choose to censor transactions, it could have a disproportionate effect on network connectivity.

The Current State of the Lightning Network

By early 2025, the Lightning Network had approximately 16,000 nodes and 75,000 channels, with routed payment volume up more than 1,200% since 2021. Network capacity peaked at over 5,637 BTC in late 2025, though the public figure fluctuates as private and custodial channels are not counted in public metrics.

Major financial platforms have integrated Lightning into their infrastructure. Coinbase accounts for around 15% of BTC withdrawals via Lightning, while Revolut, Binance, OKX, Kraken, and Cash App all support Lightning transactions for users. At the Bitcoin 2025 conference, Lightning payments set a Guinness record with 4,187 transactions processed in eight hours.

A significant development in January 2025 was the launch of Taproot Assets, which enabled USDT stablecoin transfers over the Lightning Network for the first time. This allows dollar-denominated transactions to travel at Lightning speed with Bitcoin-level security, potentially expanding the use case beyond BTC micropayments to everyday remittances and commerce.

There are several node software implementations available for those who want to run their own Lightning node, including Lightning Labs' Lightning Network Daemon (LND), Blockstream's Core Lightning (CLN), and ACINQ's Eclair. For users who prefer a simpler setup, many companies offer plug-and-play hardware nodes. You can also explore other Bitcoin Layer 2 Networks that have emerged alongside Lightning.

FAQ

What is the Lightning Network in simple terms?

The Lightning Network is a payment layer built on top of Bitcoin that allows users to send and receive payments instantly and at very low cost. Instead of recording every transaction on the main blockchain, two parties open a payment channel, conduct as many transactions as they want off-chain, and only settle the final balance on the blockchain when they're done.

What are Hash Timelock Contracts and why are they important?

Hash Timelock Contracts (HTLCs) are the cryptographic mechanism that makes Lightning channels trustless. They use hashlocks (which require a secret to spend funds) and timelocks (which set a deadline for claiming funds) to ensure that neither party in a payment channel can steal from the other. If one party attempts to broadcast an outdated transaction to claim more than they're owed, the other can use the revealed secret to claim the cheater's funds entirely.

What are the main limitations of the Lightning Network?

The three main limitations are liquidity constraints (you can only send as much as is locked in the channel path), usability complexity (opening channels and managing capacity requires some technical knowledge), and the risk of centralized routing hubs forming. As large nodes accumulate liquidity and attract more traffic, the network could become reliant on a few well-connected entities, which introduces censorship risk.

How do you open a Lightning Network channel?

To open a channel, you broadcast a funding transaction to the Bitcoin blockchain that locks funds into a 2-of-2 multisignature address shared with your channel partner. Once confirmed, the channel is active and you can transact off-chain. When you're ready to close, you broadcast the final balance state to the blockchain. Most modern Lightning wallets and apps handle this process automatically.

Closing Thoughts

Since its mainnet launch in 2018, the Lightning Network has grown significantly and shifted from an experimental protocol to production-scale infrastructure used by major exchanges and consumer platforms. Technical improvements, including Taproot Assets, channel splicing, and multi-path routing, continue to expand what it can do. Usability challenges remain, but the gap between Lightning and traditional payment systems is narrowing.

Further Reading

Disclaimer: This content is presented to you on an "as is" basis for general information and or educational purposes only, without representation or warranty of any kind. It should not be construed as financial, legal or other professional advice, nor is it intended to recommend the purchase of any specific product or service. You should seek your own advice from appropriate professional advisors. Where the content is contributed by a third party contributor, please note that those views expressed belong to the third party contributor, and do not necessarily reflect those of Binance Academy. Digital asset prices can be volatile. The value of your investment may go down or up and you may not get back the amount invested. You are solely responsible for your investment decisions and Binance Academy is not liable for any losses you may incur. For more information, see our Terms of Use, Risk Warning and Binance Academy Terms.