This article was translated from Japanese with AI. Read the original (日本語) · Report a translation issue

Have you ever set up a node on the Lightning Network (LN) and opened a channel, only to find that you can send payments but for some reason can't receive them?

Almost always, the cause is a lack of inbound capacity (also called inbound liquidity). You get outbound capacity (your sending side) automatically just by opening a channel, but inbound capacity (your receiving side) requires someone else to provide liquidity for you. This tends to be the first hurdle in running a Lightning node.

(For brevity, I'll simply say "inbound" and "outbound" from here on.)

This article is written for LN operators who already run a node or are about to start running one in earnest. I'll walk through eight concrete ways to obtain inbound, ordered from easiest to hardest to put into practice, so you should be able to find the node strategy that suits you best.

What Is Inbound Capacity?

A channel on the Lightning Network is like a pipe through which funds can flow in both directions. The capacity within that pipe for funds to flow toward you (the amount you can receive) is called inbound capacity.

To explain this more concretely, take a look at the diagram below.

Inbound capacity and outbound capacity from Alice's perspective

The upper state in the diagram shows Alice after she has opened a channel to Bob and deposited 100,000 sats (outbound). At this point, Alice can send up to 100,000 sats to Bob. However, Bob cannot send anything at all to Alice unless there is a balance on his side (inbound). In other words, because the party opening a channel generally puts up the funds, only outbound exists at the start.

Acquiring inbound means having the balance shift to Bob's side, as in the lower state. In the diagram, you can see how sending 50,000 sats shifts the balance of funds.

Why Inbound Capacity Matters

Why is inbound considered so important? If you run Lightning only for sending payments, you can simply open a new channel to top up whenever your outbound runs dry.

Inbound, on the other hand, carries real weight for the following two types of LN operators:

  • Businesses that accept Lightning payments
  • Routing node operators

For businesses accepting Lightning payments, incoming payments fail when inbound runs out, so they constantly need to replenish it.

For routing node operators, managing the balance within their channels is key to maximizing fee revenue.

What both have in common is that inbound is hard to source. As mentioned above, outbound is easy to get just by opening a channel, but inbound takes time and money, so you need to keep securing it systematically before it runs out.

8 Ways to Acquire Inbound Capacity

Here are eight ways to acquire inbound, in order of how easy they are for node operators to put into practice.

  1. Send payments over Lightning (to a wallet or exchange)
  2. Buy a channel
  3. Get others to open channels to you, or open channels to each other
  4. Do a submarine swap
  5. Circular Rebalance
  6. PeerSwap
  7. Create a dual-funded channel (CLN)
  8. Liquidity Ads/Lease (built on dual funding)

1. Send Payments over Lightning (to a Wallet or Exchange)

The simplest way to gain inbound is to send payments. That said, sending funds off at random just means losing money, so I don't recommend it.

Instead, you can send funds over Lightning to your own mobile wallet, such as Wallet of Satoshi, or to your account at an exchange, then send them back to your own wallet on-chain. This leaves you with inbound.

One caveat when sending to a wallet: mobile wallets like Breez and Muun use Boltz on the backend, so it can actually be more efficient to use Boltz directly. I'll cover Boltz later in the section on submarine swaps.

2. Buy a Channel

The next method is to buy or rent a channel through a marketplace. Its biggest advantage is that paying for it reliably secures you inbound.

The three main services are:

Magma by Amboss Space is a marketplace that matches buyers and sellers of liquidity. When you buy a listed channel, the seller's node opens a channel to your node. Note that these come with a set rental period.

LNBIG is not a marketplace; it's a service where LNBIG's cluster of nodes, which hold large amounts of liquidity, open channels to you directly. It's well suited to cases where you want to secure a large amount of inbound all at once.

Lightning Pool is a liquidity market developed by Lightning Labs where channel leases are bought and sold through an auction. Note that it is designed to be used with lnd.

Whichever service you use, it's important to check in advance things like the renewal cost once the rental period ends and the uptime score of the node you'll be connecting to.

3. Get Others to Open Channels to You, or Open Channels to Each Other

The most straightforward way to get inbound is to have another node open a channel to yours.

However, it's rare for a node operator who doesn't know you to open a channel to you on their own initiative. Realistically, your main options are to ask node operators you know personally, or to arrange a mutual opening where you each open a channel to the other.

With Lightning Network+'s Liquidity Swap, you can also arrange mutual openings between nodes that don't know each other, without relying on personal connections.

A Liquidity Swap in which three nodes form a ring and open channels to one another

Three to five nodes connect in a ring, and each participant opens just one channel. Everyone ends up with both inbound and outbound.

Liquidity Swap is a simplified version of Circular Rebalance, which I'll introduce later. Since you get inbound for nothing more than on-chain fees, it is arguably the most cost-effective of all the methods covered here.

Liquidity Swaps Index • LightningNetwork+
Bitcoin Lightning Network Liquidity Swap Organizer
💡
As your node becomes better known, others may start opening channels to you on their own. However, building a presence on the network through a track record of uptime and routing is very difficult and takes considerable time and money.

4. Do a Submarine Swap

If you have channels with surplus outbound, a submarine swap (specifically, a reverse submarine swap) is effective. You withdraw funds held on Lightning as on-chain BTC and gain an equivalent amount of inbound.

Boltzは本当にトラストレスなのか?Submarine Swapの仕組みから解説
BoltzはSubmarine Swapを用いて、オンチェーンBTCとLightning残高をアトミックに交換できるサービスです。本記事では、その仕組みとWeb appの役割から、Boltzがどこまでトラストレスと言えるのかを技術的観点で解説します。

The main services are Boltz and Loop.

Boltz is a non-custodial Bitcoin bridge that supports swaps between Lightning, Liquid and on-chain BTC. Alongside Boltz itself, which has a simple UI aimed at everyday users, there's also Boltz Pro, a rewards-based service where you can earn sats by helping supply liquidity to Boltz. You can also use its Auto Swap feature to maintain inbound automatically.

Loop is a submarine swap service developed by Lightning Labs. Running a Loop Out sends funds from Lightning out to on-chain, which gives you inbound on the channel.

5. Circular Rebalance

Circular Rebalance is a technique in which your node sends a payment to itself to adjust the liquidity balance across its channels. It's useful when you want to make adjustments within your existing channel balances.

Conceptual diagram of a Circular Rebalance

Let's walk through the diagram. On the left, your node's channel A is skewed toward outbound, while its channel D is skewed toward inbound.

When you run a Circular Rebalance, your node sends a payment through channel A, which travels via channel B → channel C → channel D and is received back by your own node.

This circular payment from yourself to yourself converts channel A's outbound into inbound, as shown on the right, bringing each channel closer to an even balance.

💡
On the real Lightning Network, as the diagram shows, you can't see the balances of channels other than your own (channels B and C). So you can't know whether a payment along this route will succeed, and you may need to retry many times until it does.

The two main tools for this are Balance of Satoshis (BoS) and rebalance-lnd.

Balance of Satoshis (BoS) is a multipurpose CLI tool for lnd that can perform a Circular Rebalance with the bos rebalance command.

rebalance-lnd is a rebalancing script written in Python that runs Circular Rebalances while displaying an overview of your channels' liquidity. Its Economy Fee Mode compares the direct cost of a rebalance with the expected revenue from routing through that channel afterward, and automatically skips rebalances that wouldn't pay for themselves.

6. PeerSwap

PeerSwap is a P2P protocol that adjusts channel balances by performing an atomic swap with a node you have a direct channel with (a peer). Since it doesn't go through a third-party service like Boltz or Loop, no one takes a cut in fees, and you can rebalance channels at low cost.

To use it, you and the node you want to swap with first need to add each other to your allowlists. After that, you can start a swap with a single CLI command, and the PeerSwap daemon handles the rest automatically. The process itself is simple, but because the other node must also have PeerSwap installed and configured, the pool of potential counterparties is somewhat limited.

If you're interested in PeerSwap, the following article is a helpful reference.

アトミックスワップでチャネルバランスを調整するPeerSwap
先月エルサルバドルで開かれていたAdopting Bitcoin 2021というカンファレンスはライトニング関連のテーマが中心となり、その中でPeerSwapというコンセプトが発表されました。PeerSwapはアトミックスワップを使ってライトニングチャネルのリバランスを行うプロトコルです。 直接チャネルがつながっているノード間でP2Pで動作し、他のリバランス方法より安価に偏ってしまったチャネルバランスを調整できるとするPeerSwapはシンプルで画期的かもしれないと感じました。今日はそんなPeerSwapを紹介します。 既存のリバランス方法 ライトニングネットワークにとって、それを構成する各チャネルのバランスはスムーズな送金を実現する上で決定的に大事な条件です。 ライトニングネットワーク上の資金は無作為に流れているわけではなく、そのときに受け取り需要のある地点に向けて送金が偏りがちなため、ペイメントチャネルは放っておくとバランスが片側に偏ってしまう傾向にあります。このようにチャネルのバランスが不均衡であったとしても他のノードからはわからないので、支払いの試行→失敗が繰り返され

To get the most out of PeerSwap, use swaps with L-BTC on the Liquid Network. With L-BTC, the swap completes without ever touching the main chain. It's also faster: when using L-BTC, a swap is done after waiting for just two block confirmations on Liquid.

PeerSwap is software developed by the ElementsProject, and it can also be installed from node operating systems such as Umbrel.

GitHub - ElementsProject/peerswap
Contribute to ElementsProject/peerswap development by creating an account on GitHub.

7. Create a Dual-Funded Channel

When a regular Lightning channel is opened, the opening side puts up all the funds and creates the funding transaction, which leaves the opener with nothing but outbound.

Dual-funded channels solve this problem at the root.

As the name suggests, both nodes contribute funds when the channel is opened and jointly create a single funding transaction. This creates balances on both sides from the moment the channel opens, giving you both inbound and outbound.

One thing to keep in mind, however: since both sides contribute funds, the two parties have to agree on the terms of the opening and cooperate to carry it out.

💡
Only three implementations support dual-funded channels: CLN, Eclair and LDK. LND, a major Lightning implementation, does not support them yet, although support has been raised as an issue.

8. Use Liquidity Ads/Lease (Built on Dual Funding)

Liquidity Ads is a feature built on top of the dual-funded channels described in the previous section. Nodes that want to supply liquidity can post ads on Lightning's gossip network, so it works as a decentralized liquidity market where inbound can be bought and sold.

A node that wants to buy liquidity can enter into a lease simply by opening a dual-funded channel with an advertising node. The ad includes information such as the lease fee, the lease duration and a cap on routing fees.

Liquidity Ad Marketplace - LnRouter
Get inbound liquidity at the best price possible. A decentralized marketplace for everybody.

Summary

There are many ways to acquire inbound, depending on your goals and budget. If you want an easy starting point, sending funds to a wallet or exchange, or using LN+'s Liquidity Swap, is probably the most approachable. Liquidity Swap in particular costs only on-chain fees, making it the most cost-effective of all the methods.

If you want to secure inbound reliably, buying channels through a marketplace like Magma or Pool works well. Just make sure you understand the rental period and renewal costs beforehand.

If your goal is to improve the balance of existing channels, the practical approach is to choose among submarine swaps, Circular Rebalance and PeerSwap depending on the situation. PeerSwap stands out: it needs no third party, it's cheap, and with L-BTC it completes in two blocks on Liquid, making it well suited to ongoing rebalancing.

If you want to secure inbound right from the moment a channel is opened, dual-funded channels and Liquidity Ads are the fundamental solution. Keep in mind, though, that they are currently supported only by CLN, Eclair and LDK, so LND users can't use them.

Every method has its pros and cons, so the key is to combine several of them to fit your node's operating style and budget, and to keep managing your inbound on an ongoing basis.