UNDER DEVELOPMENT - DRAFT
Skip to main content
ln.university
LN 100 Fundamentals Lesson 02 Lesson 2 of 7 · 4 min · no measured block
Lesson 02 Reading lesson revised

Inbound and outbound, and why the asymmetry matters

A channel that you fund alone gives you all of the sending room and none of the receiving room, and it gives your peer the reverse. So a node can hold bitcoin in channels and still be unable to take a single payment. This lesson names the two sides, shows who needs which one, and lists the limits that BOLT 2 and BOLT 7 put on each. It condenses the liquidity section of Mastering the Lightning Network, chapter 12.

Assumed before you start
After this lesson you can
  • Say which side of a channel a given payment needs room on
  • Work out how much you can send and receive from a channel's two balances and its reserve
  • Explain why funding a larger channel adds outbound and no inbound
Anchor text · read alongside CC-BY-SA-4.0 · free online
Chapter 12 · anchor
Mastering the Lightning Network
Andreas M. Antonopoulos, Olaoluwa Osuntokun, René Pickhardt
"Pathfinding and Payment Delivery", the section on capacity, balance and liquidity. This lesson's definition of liquidity condenses it.
Read the chapter →
Chapter 7 · background
Mastering the Lightning Network
Andreas M. Antonopoulos, Olaoluwa Osuntokun, René Pickhardt
"Payment Channels", the `open_channel` message: who funds the channel and what `push_msat` does.
Read the chapter →

Outbound liquidity is the part of a channel that you can send, and inbound liquidity is the part that you can receive. The two are the same capacity seen from opposite ends, so, before reserves and in-flight payments, every payment you send turns outbound into inbound by the same amount. A channel that you fund alone starts with all outbound and no inbound, which means you can pay at once and cannot yet be paid. This lesson shows who needs which side and which protocol limits apply to each.

One channel, two directions

The book defines the sendable part of a balance in one line, and the rest of this lesson uses it.

Liquidity is the part of a balance that can actually be sent across the channel in one direction. It equals the balance, minus the channel reserve, minus any pending HTLCs that the sender has committed.

Adapted from Mastering the Lightning Network, ch. 12, Pathfinding and Payment Delivery · CC-BY-SA-4.0 · condensed, terminology aligned to this course

Apply that to both ends of one channel. The numbers below are a worked example with round figures. They come from no real node, and they ignore the commitment transaction fee.3 Alice funds a 2 000 000 sat channel with Bob, and each side keeps a 1% reserve of 20 000 sats.1

MomentAlice localBob localAlice can sendAlice can receive
Channel opens, Alice funded it2 000 00001 980 0000
Alice pays 1 000 0001 000 0001 000 000980 000980 000
Alice has paid 1 980 000 in all20 0001 980 00001 960 000

Alice’s inbound is Bob’s outbound, so the right-hand column is Bob’s local balance minus Bob’s reserve, and never less than zero. The capacity stays at 2 000 000 sats throughout.2 Only the line between the two balances moves.

Who needs which side

A payment uses one side of each channel that it crosses, and which side depends on your role.

RoleNeeds outbound onNeeds inbound on
Someone who paysThe channel to the first hopNothing, for this payment
Someone who gets paidNothing, for this paymentThe channel from the last hop
A node that forwardsThe channel it forwards out throughThe channel the payment arrives on

A forwarding node needs both at once, on two different channels. After a forward, its outbound on the outgoing channel has fallen and its outbound on the incoming channel has risen by about the same amount. That is why a router that is busy in one direction drains one channel and fills another.

Why you can create one side alone and not the other

You can create outbound without anyone’s help. You fund a channel from your own coins, and the funding amount starts on your side. In BOLT 2, open_channel carries funding_satoshis, and the receiver starts with the push_msat amount only. The book warns that a non-zero push_msat is a gift of money to your channel partner.

You cannot create new inbound alone. Spending moves outbound over to the remote side, so it creates inbound, but your total outbound across all channels falls by the same amount. Inbound that you did not pay for must come from funds on someone else’s side. BOLT 2 lets a peer that accepts a dual-funded channel add its own inputs to the funding transaction, so a peer can bring funds to the channel. The peer’s choice decides whether it does.

That difference is the asymmetry. Outbound costs you your own capital. Inbound costs you either your outbound or someone else’s capital. Four ways to get inbound liquidity lists your options for the second case.

Limits that apply on top of the balance

The two balances are not the only limit. The protocol adds four more, and each one can stop a payment that the balance would allow.

The public data carries these limits and fees, and it carries no balance. A channel_update has fields for fees, delay, and the HTLC minimum and maximum. It has no field for how the funds are split. A sender that wants to know whether a channel has room can only try, which lesson 5 follows through a whole path.

What this changes for the next lessons

Everything priced later in this course is a price for moving the line between local and remote, or for adding someone else’s funds to the remote side. Lesson 3 names the ways to do that. Lessons 4 and 5 show how a payment uses the line across several channels. Lesson 6 turns the price of moving it into a fee you can defend.

Check yourself · 3 questions no score, no record
  1. 01 You hold three channels of 1 000 000 sats each, with every satoshi on your side. A merchant offers to pay you 500 000 sats in one payment. Can you take it?
  2. 02 A 2 000 000 sat channel stands at 30 000 sats local and 1 970 000 sats remote. Each side keeps a 1% reserve. How much can you send, and how much can you receive?
  3. 03 Your channel is too small for what you need to receive, so you open a second, larger channel and fund it yourself. Why does your inbound stay at 0 in the new channel?

Notes

  1. In the original channel-opening flow, open_channel carries a channel_reserve_satoshis field. It is the minimum that the other node must keep, and BOLT 2 suggests 1% of the channel total. In the newer dual-funded flow the field is gone, and BOLT 2 fixes the reserve at 1% of the total channel balance, rounded down, or at the dust limit if that is greater. A reserve that one side has not yet met at the start is allowed, as long as the protocol keeps moving toward meeting it.BOLT 2
  2. The capacity stays constant only for a channel that is not spliced. BOLT 2 defines splicing, which replaces the funding transaction with a new one so that funds can be added to a channel or taken out of it. It needs both peers to support it. Chapter 7 of the book, which says channels are funded by one partner only, predates both splicing and dual funding.BOLT 2, Channel Splicing
  3. The commitment transaction fee comes out of the funder's amount. That lowers what the funder can send, and the difference grows when on-chain fees rise. Where zero_fee_commitments applies, the fee is handled differently.BOLT 3, Fee Payment

Source & license

This page adapts Mastering the Lightning Network by Andreas M. Antonopoulos, Olaoluwa Osuntokun, René Pickhardt, licensed CC BY-SA 4.0. Adapted passages are marked in the text with a hairline rule and a source line. Changes: condensed, terminology aligned to this course's glossary, and the worked example replaced with round numbers that include the channel reserve.

This page is therefore also CC BY-SA 4.0. Copy it, translate it, teach from it, republish it under the same license, with attribution to the works above and to ln.university.