include dirname(dirname(__DIR__)) . '/includes/lab-nav.php'; ?>
Educational Hub

Lightning Network Simulator (HTLC Routing)

Lightning is a network of bidirectional payment channels. You don't need a direct channel with everyone; payments are routed through intermediate nodes using HTLCs (Hashed Time-Locked Contracts). Watch how channel liquidity shifts during a multi-hop payment.

50kCapacity: 100k50k
🔒
50kCapacity: 100k50k
🔒
👩 Alice
50k
👨 Bob
Router
👧 Carol
50k

1. Direct Payment (Alice ⇄ Bob)

Move the slider to create new Commitment Txs rebalancing channel 1 off-chain.

2. Multi-Hop Routing (Alice ➔ Carol)

Alice pays Carol through Bob. The payment is locked with a Hash and settled by revealing the Secret.

Network Log (Gossips & Off-Chain)

[Blockchain] TxID 0x8f...21a confirmed.
[Layer 2] Alice-Bob Channel open (100k Sats).
[Layer 2] Bob-Carol Channel open (100k Sats).