Bitcoin Lightning Payment Channels: Funding and Commitment Transactions
A Lightning payment channel represents an evolving agreement about how a Bitcoin funding output can be spent. Instead of broadcasting a new Bitcoin transaction for every transfer, channel peers exchange signed updates that replace the previously agreed balance distribution.
Funding output and initial state
A channel starts with a funding transaction and an initial enforceable commitment state. In common channel constructions, the funding output requires both peers to authorize cooperative spending. Each peer holds a commitment transaction it can use to close the channel if the other peer becomes unresponsive.
The funding transaction and the commitment transactions have different roles. The former places funds under channel control; the latter expresses the current enforceable settlement distribution.
Updating balances
If Alice pays Bob through their direct channel, they negotiate a new state reflecting the changed balances. Under the traditional penalty-based channel design, peers exchange revocation information so that publishing an obsolete commitment can expose the dishonest party to a penalty. This mechanism depends on transaction structure, timelocks, and timely chain observation.
Do not describe all possible Lightning channel types as identical. Channel designs and feature negotiations can evolve, and proposed or newer constructions may use different enforcement mechanisms.
Commitment transactions and HTLC outputs
Commitment transactions can include outputs representing unresolved conditional payments. These outputs have success and timeout paths. A peer may need to act before a deadline, especially when a counterparty closes while HTLCs are pending.
Cooperative versus unilateral close
In a cooperative close, peers agree on a final settlement. A unilateral close uses an already signed commitment state and may require waiting periods before some outputs become spendable. Closing costs and confirmation delays vary with network conditions and channel details.
Operational risks
A Lightning node must protect its signing keys, preserve channel state, and monitor Bitcoin for relevant transactions. Restoring an outdated channel database is not equivalent to restoring an ordinary on-chain seed wallet; it can put funds at risk. Channel backup and recovery mechanisms should be evaluated according to the actual node implementation.
Primary references
BOLT 2 — Peer Protocol for Channel Management: https://github.com/lightning/bolts/blob/master/02-peer-protocol.md
BOLT 3 — Bitcoin Transaction and Script Formats: https://github.com/lightning/bolts/blob/master/03-transactions.md
BOLT 5 — On-chain Transaction Handling: https://github.com/lightning/bolts/blob/master/05-onchain.md
