Model 16 · Network

The Lightning Channel Machine

Many payments, two blockchain transactions when closed cooperatively.

Intermediate≈ 10 min

Explanation level

How to use this model

How to use this modelWhat you see, what you can touch, what changes, what to take away

What am I looking at?

A precision bench: Alice's and Bob's stations on either side of a shared channel trough whose piston divides the capacity, a two-key lock beneath it and a chain rail for the funding and closing transactions.

What can I touch?

  • Open a simulated channel
  • Choose channel capacity
  • Send payments from Alice to Bob
  • Send payments from Bob to Alice

What happens when I change something?

Send a payment and the piston moves: the sender's share shrinks and the receiver's grows by exactly that amount, the capacity stays the same, and nothing new appears on the chain rail until the channel is closed.

What should I understand afterwards?

Explain why payments inside a channel do not each need a blockchain transaction.

Understand payment channels as shared spending arrangements updated without recording every payment on the blockchain.

A shared box with two keys.

After this you can

  • Explain why payments inside a channel do not each need a blockchain transaction.

Open the model in its own window · works offline once loaded

Missions operate the model to complete them

  • Capacity is not liquidity

    Beginner

    Find out the hard way that a channel's size is not what each side can send.

Missions are checked from the model's own simulation state, not from clicks. No time limit. Completion is stored only in this browser. The quiz questions in the learning paths remain available.

Tutor Ask a question, or let the tutor show you around

The tutor answers by explaining and, within the permissions below, by operating this model. Every change it makes is shown and listed, and you can undo it. It cannot run code, read your browser data or see anything secret. The page works the same without it.

What the tutor may do
What the tutor did

    Common mix-ups

    Myth: A 1,000,000 sat channel lets either side send 1,000,000 sat.
    In fact: Each side can only send its own balance above the reserve; the capacity is shared.
    Myth: Every Lightning payment is a small on-chain transaction.
    In fact: Payments update the channel's commitment state; only opening and closing are on-chain.

    Concepts in this model

    Helpful to know first

    Next recommended

    Model 17 · NetworkThe Lightning Routing MachinePaying across a network of channels.

    Part of these learning paths