Cooperative Close

Both channel peers agree and settle the channel on-chain in one cheap transaction.

Basically

You and your channel partner agree to close a Lightning channel and sign one final Bitcoin transaction. It pays each of you the correct balance on the blockchain.

Key Takeaways

  • A cooperative close is the preferred way to close a Lightning channel. Both nodes agree on the final balances, co-sign one closing transaction, and broadcast it to the Bitcoin blockchain without timelocks or penalty paths.
  • Cooperative closes use smaller on-chain transactions than force closes, cost less in fees, and create immediately spendable outputs. You do not wait days or weeks for timelock delays to expire.
  • Both peers must be online and willing to cooperate. If one peer is unresponsive or malicious, your only fallback is a unilateral force close using the latest commitment transaction.

What Is a Cooperative Close?

A cooperative close, also called a "mutual close", shuts down a Lightning Network payment channel with both participants' agreement. Both nodes negotiate a final closing transaction instead of either party unilaterally broadcasting a pre-signed commitment transaction. The transaction pays each side's correct balance directly to their chosen Bitcoin address.

The closing transaction spends the channel's 2-of-2 multisig funding output and creates one or two outputs paying each party's final balance. Both parties sign the transaction cooperatively, so it needs no timelocks, revocation paths, or penalty mechanisms. Your funds become spendable as soon as the transaction confirms on-chain.

Cooperative closes are the default and preferred closure method in every major Lightning implementation, including LND, Core Lightning, and Eclair. The process typically completes within seconds of initiation when both peers are online and responsive. The on-chain transaction still requires the usual block confirmations.

How It Works

BOLT #2 (peer protocol) and BOLT #3 (transaction formats) define the cooperative close protocol. The process has two phases: shutdown initiation and fee negotiation.

Phase 1: Shutdown

Either node can initiate the close. It does so by sending a shutdown message.

An "upfront shutdown script" committed to when the channel was opened requires either node to use that exact address. The feature prevents an attacker who compromises a node from redirecting closing funds to a different wallet.

Phase 2: Fee Negotiation

Both nodes negotiate the on-chain fee rate for the closing transaction after exchanging shutdown messages and resolving all HTLCs. The negotiation sets the fee for the transaction that closes the channel.

The legacy protocol uses iterative negotiation. The nodes exchange proposals until they agree on a fee.

An optional fee_range extension lets nodes communicate acceptable fee boundaries upfront. Overlapping ranges speed convergence.

The Closing Transaction

The resulting closing transaction has a simple structure. It is structurally simple compared with a commitment transaction.

A balance below the dust limit for its output type causes that party's output to be omitted entirely. The dust amount is absorbed into the fee.

The Simplified Close Protocol

The Lightning specification merged option_simple_close (features 60/61) in February 2025, replacing iterative fee negotiation with a cleaner request/response pattern. The closer sends a closing_complete message and pays the fee from their own balance. The responder replies with a closing_sig message containing their signature. The new protocol also adds RBF support for cooperative closes and is designed for Taproot / MuSig2 compatibility.

Cooperative Close vs. Force Close

Cooperative closes and force closes differ in cost, speed, complexity, and risk. Anyone operating Lightning channels needs to know these differences.

Force closes use the latest commitment transaction, which includes timelocked outputs, potential anchor outputs, and any unresolved HTLC outputs. The initiator's funds are locked behind a to_local output with a CSV (CheckSequenceVerify) delay, typically ranging from one day to two weeks. The counterparty can broadcast a penalty transaction during this window if the commitment was outdated, claiming all channel funds.

A cooperative close has none of this complexity. The transaction is as simple as any standard Bitcoin payment.

Why It Matters

Cooperative closes are more than a convenience. They have practical implications for cost, privacy, and network health.

Node operators managing many channels see the cost difference add up. A channel management strategy that prioritises cooperative closes can significantly reduce on-chain fee expenditure over time.

When Cooperative Close Fails

A cooperative close requires both peers to be online, reachable, and willing to cooperate. Several scenarios force a fallback to unilateral closure.

The node falls back to broadcasting its latest commitment transaction in all these cases: a force close. Lightning nodes therefore maintain up-to-date commitment transactions at all times, and watchtowers exist to monitor for outdated commitments.

Routine Channel Management

Routine channel management is the most common use case: simply closing a channel that is no longer needed. A routing node operator might close channels with low volume or poor connectivity, while a merchant might close a channel after a seasonal demand spike. Splicing has reduced the need for full closures when the goal is simply resizing a channel, but cooperative closes remain the standard when a channel needs to be fully wound down.

Rebalancing On-Chain Funds

Node operators sometimes need to move funds from Lightning back to on-chain Bitcoin for cold storage, payments, or opening channels with different peers. A cooperative close returns funds to a standard Bitcoin UTXO at minimal cost. It is preferable to Loop Out or submarine swaps when the channel itself is no longer needed.

Upgrading Channel Parameters

Cooperative closure was the only way to change channel parameters before splicing was widely available. Operators closed the old channel and opened a new one with updated settings, such as switching from legacy to Taproot channels or adjusting channel reserves.

Peer Availability

Peer cooperation is the fundamental requirement and risk of relying on cooperative closes. A cooperative close is impossible if a peer goes permanently offline through hardware failure or an abandoned node. Node operators should always be prepared for force close scenarios and maintain sufficient on-chain funds to cover the higher fees associated with commitment transactions.

Fee Negotiation Failures

High mempool congestion can cause peers to disagree on appropriate fees. Iterative negotiation may fail if one party wants a very low fee to save costs and the other wants a high fee for fast confirmation, resulting in a force close. The newer option_simple_close protocol mitigates this by letting the closer set the fee unilaterally, since it comes from their balance, and supporting RBF if the initial fee is too low.

Timing Considerations

An in-flight HTLC approaching its expiry can make initiating a cooperative close unsafe. The shutdown protocol requires all HTLCs to resolve first, and the node may need to force-close to protect against HTLC timeout if resolution is blocked. Operators should avoid initiating cooperative closes while the channel has pending HTLCs near expiration.

Privacy Trade-offs

Cooperative close transactions are less identifiable than force closes on-chain, but they still reveal the final balance split between the two parties. A channel that opened with 1 BTC and closes with outputs of 0.3 and 0.7 BTC reveals the net payment flow over the channel's lifetime. Privacy-sensitive applications should consider the on-chain footprint of any channel closure.

Nuri provides this glossary entry for informational purposes only. It does not constitute financial or investment advice, so always do your own research before using any protocol or technology.

0

← All 1876 glossary terms