Channel Close Types
The three exits from a Lightning channel: cooperative, unilateral force close, and breach, each with different costs.
Basically
A Lightning channel can close in three ways: you both agree, one person acts alone, or someone tries to cheat. Each way has different costs, waiting times and trust risks.
Key Takeaways
- Lightning channels can close in three ways: a cooperative close where both parties agree on final balances, a force close where one party acts alone, and a breach close where a cheating party publishes a revoked state.
- Each close type has different costs, speeds and risks: cooperative closes are cheapest and fastest, force closes lock the broadcaster's funds behind a timelock, and breach closes trigger a penalty transaction that transfers all funds to the honest party.
- The close type determines how long you wait for your funds and how much you pay in on-chain fees, so you need to know how each one works when managing Lightning channels.
What Are Channel Close Types?
Channel close types are the three ways to settle a Lightning Network payment channel on-chain. Every channel starts with a funding transaction that locks bitcoin in a 2-of-2 multisig output, and closing it returns that bitcoin to the two parties. The outcome depends on whether both parties are online and cooperating, one party is unresponsive, or one party is trying to cheat.
The three close types are cooperative close, force close and breach close. Each produces a different on-chain transaction pattern with different fees, confirmation times and fund availability, and the channel's commitment transaction plays a central role by encoding the agreed balance distribution at each state update.
Cooperative Close
A cooperative close is the simplest and most efficient way to close a Lightning channel. Both parties are online, agree on the final balances and jointly sign a single closing transaction. That transaction spends the 2-of-2 multisig funding output and creates one or two outputs paying each party their final balance.
The process follows these steps. Both parties use the agreed final balances.
The closing transaction is a simple spend from a multisig output, so it is compact at roughly 170 virtual bytes. At a fee rate of 5 sat/vB, it costs around 850 sats. There is no timelock delay, so both parties can spend their funds as soon as the transaction confirms.
Force Close
A force close occurs when one party broadcasts their latest commitment transaction without the other party's cooperation. It is the fallback when a channel partner goes offline, becomes unresponsive or refuses to cooperate on a mutual close.
The process works as follows. One party broadcasts the latest commitment transaction alone.
Force closes cost more than cooperative closes for several reasons. The commitment transaction is larger because it includes timelock scripts and potentially multiple HTLC outputs, and each pending HTLC needs a separate on-chain transaction to resolve. The broadcaster cannot choose an optimal fee rate in advance because the commitment transaction uses a pre-signed fee, though anchor outputs allow fee bumping via CPFP.
The timelock delay on the broadcaster's funds is a security mechanism, not a punishment. It gives the counterparty time to check whether the broadcast state was the most recent one. If it was not, the counterparty can publish a justice transaction and claim all the funds.
Breach Close
A breach close happens when a channel partner broadcasts an old, revoked commitment transaction in an attempt to steal funds. For example, if Alice once owed Bob 500,000 sats but later paid him so that she now owes 200,000 sats, Alice might try to broadcast the old state where she still had the larger balance. The Lightning penalty mechanism is designed to prevent this.
When a breach is detected, the resolution follows these steps. The honest party acts before the cheater's timelock expires.
The revocation key makes this possible. Each time the channel state updates, both parties exchange revocation secrets for the previous state, which can be combined with the counterparty's own key material to construct a revocation key that spends all outputs from the revoked commitment transaction. The honest party must broadcast the penalty transaction before the cheater's timelock expires, which is why force-closed funds have a delay.
Comparing Channel Close Types
The three close types differ significantly in cost, speed and outcome. You can compare them by what you pay, how long you wait and who receives the funds.
Cooperative Close Scenarios
Most channel closes should be cooperative. Common triggers include rebalancing channel capacity, reallocating funds to a different peer, closing unprofitable routing channels or simply withdrawing funds on-chain. As long as both nodes are online and their software is functioning, the cooperative path is available.
Force Close Scenarios
Force closes happen when cooperation is impossible. Typical causes include a peer going permanently offline through hardware failure or node shutdown, a peer becoming unresponsive due to software bugs, a dispute over the channel state, or the need to resolve pending HTLCs that cannot settle off-chain. Force closes are undesirable but sometimes unavoidable: they are the safety net that ensures users can always recover their funds regardless of their counterparty's behaviour.
Breach Close Scenarios
Breach closes are rare in practice because the penalty mechanism makes cheating economically irrational, and a rational actor would never broadcast a revoked state when the downside is losing 100% of their channel funds. Breach attempts typically stem from software bugs that accidentally replay old state, restoring a node from an outdated backup, or deliberate fraud attempts against parties assumed to be offline. Running a watchtower service significantly reduces breach risk by monitoring the blockchain even when a node is offline.
Fee Implications
The fee difference between close types can be substantial, especially during periods of high fee market congestion. Force closes usually cost more because they need more on-chain data and transactions.
During fee spikes, force close fees can exceed the value of small channels, effectively making those funds uneconomical to recover. This is one reason why channel management and maintaining good peer relationships matter for Lightning node operators. For a deeper look at how fees affect channel economics, see the Lightning channel management guide.
Why It Matters
Channel close types are fundamental to operating on the Lightning Network. The close mechanism directly affects how quickly you can access your funds, how much you pay in on-chain fees and whether you risk losing funds to a breach attempt. Node operators who know these mechanics can make better decisions about peer selection, channel sizing and backup strategies.
The penalty-based close model also distinguishes traditional Lightning channels from newer Layer 2 approaches such as Spark. Spark avoids commitment transactions and penalty mechanisms entirely by using a different off-chain model with virtual UTXOs and FROST threshold signatures, eliminating the need for force closes and their timelock delays. For a detailed comparison, see What Is Spark.
Backup Risks
Restoring a Lightning node from an outdated backup can cause an accidental breach. If the restored node broadcasts an old commitment transaction, the counterparty will claim all funds via a penalty transaction. Static channel backups (SCBs) exist to prevent this: they allow recovery by triggering a remote force close from the counterparty rather than broadcasting a potentially stale local state.
Watchtower Dependency
The breach close penalty only works if the honest party or their watchtower detects the revoked state before the cheater's timelock expires. Without a watchtower, an offline node leaves an opening for a cheater to steal funds by broadcasting a revoked state and waiting out the timelock. Longer timelocks provide more safety margin but lock funds for longer during legitimate force closes; for more on this trade-off, see how Lightning watchtowers work.
Fee Spiking and Flood-and-Loot
The time-bounded nature of breach detection creates a vulnerability: an attacker can force close many channels simultaneously, congesting the blockchain so that victims' penalty transactions cannot confirm in time. This flood-and-loot attack exploits finite block space and the time-limited dispute window. Mitigations include anchor outputs, which allow fee bumping, package relay improvements and watchtower services that can respond quickly to on-chain events.
Dust Channels
During high fee periods, the cost of a force close transaction may exceed the value held in a small channel. These 'dust channels' can become economically unrecoverable, effectively turning the locked funds into a loss. Operators should consider minimum channel sizes relative to expected on-chain fee environments.
This glossary entry is for informational purposes only and does not constitute financial or investment advice. Always do your own research before using any protocol or technology.