Routing and liquidity
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.
Loading lesson visuals...
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.
Find candidate routes
The sender uses network announcements, local channel state, fees, and heuristics. Public capacity does not reveal exact available balance.
Inspect every idea above to open it.
Capacity is split between sides. Only the sending side's available balance, minus reserves and pending HTLC constraints, supports that direction.
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.