Reviewed Aug 2026
DE
BA-11 · LESSON 03

Routing and liquidity

KEY DEFINITIONS

Terms used in this lesson

Preimage
The original secret data whose hash equals a previously committed value.
HTLC
Hashed Timelock Contract: a conditional payment that requires a secret before a deadline or permits a later refund.
CLTV
CheckLockTimeVerify: a Bitcoin Script operation that enforces an absolute time or block-height condition.
BOLT
Basis of Lightning Technology: a numbered specification document for the Lightning protocol.
BTC
The common market ticker for bitcoin.

Multi-hop payments use onion routing and conditional transfers but depend on directional channel liquidity.

55 min Difficulty 3/5 Not started

Loading lesson visuals...

01

Learn the idea

Lightning routing sends a payment across several channels using linked HTLCs. Onion routing gives each forwarding node only its adjacent hop instructions. Liquidity is directional: a channel may have total capacity but lack outbound balance in the needed direction. Parts per million, abbreviated ppm, is the proportional-fee unit. CheckLockTimeVerify, abbreviated CLTV, supplies the name used for each hop's expiry delta. Fees and timeouts increase along the route to compensate forwarders and preserve safe failure order. Basis of Lightning Technology, abbreviated BOLT, names Lightning's specification documents. The lab independently authenticates and peels a deterministic teaching packet; it is not the BOLT 4 Sphinx wire format.

GUIDED EXPLANATION1/5 ideas inspected
1

Find candidate routes

The sender uses network announcements, local channel state, fees, and heuristics. Public capacity does not reveal exact available balance.

Inspect each idea before the worked example.
The worked example follows the explanation

Inspect every idea above to open it.

Important distinctionA channel with 1 BTC capacity can route 1 BTC in either direction at any time.

Capacity is split between sides. Only the sending side's available balance, minus reserves and pending HTLC constraints, supports that direction.

02
FINISH LEARNING FIRST

The questions unlock after every required learning activity

Inspect every guided idea, open the worked example, rebuild its mechanism, and complete the deterministic lesson tool. Your progress is saved automatically.