<p>Yes you can rebalance your channels by creating circular onions. That will also cost you routing fees which are currently low.</p>
<p>However in order to get onchain funds you would have to close a channel (or open a channel if you want more liquidity). This means you cannot really swap on chain with off chain funds to provide yourself with inbound liquidity - wich is what loop / submarine swaps are for.</p>
<p>If you use c Lightning you can use the rebalce plugin <a href="https://github.com/lightningd/plugins/tree/master/rebalance" rel="nofollow noreferrer">https://github.com/lightningd/plugins/tree/master/rebalance</a> or the drain plugin: <a href="https://github.com/lightningd/plugins/tree/master/drain" rel="nofollow noreferrer">https://github.com/lightningd/plugins/tree/master/drain</a> depending on what exactly you want to do you might have to fork these plugins</p>

CC BY-SA 4.0
2020-09-27T11:47:26.603Z
2020-09-27T11:47:26.603Z
Rene Pickhardt
<p>Can I have an autonomous loop channel with myself where I would suck all excess inbound/outbound capacity to/from channels I have with other parties? In such a case, I would not have to even burden Bitcoin blockchain with the looping activity.</p>

CC BY-SA 4.0
2020-09-27T12:36:20.653Z
Could you elaborate how a channel would be able to buffer for all other channels? Do you for example propose to have a wumbo channel between two nodes you control with large balances on both sides?
Murch
CC BY-SA 4.0
2020-09-27T14:12:15.547Z
I thought about it and I came to the same conclusion as you, to have two nodes I control and big channel between. My first naive thought that lead me to pose the question would require a channel with three parties connected to it where I would represent two parties and the third party would be a node of others for connection to the LN.
Jan Siebert
<lightning-network><ln-channel-balance-management><ln-loop>
Autonomous Loop channel
Jan Siebert
# Autonomous Loop channel

(Asked by: username_0 on 2020-09-27)

Can I have an autonomous loop channel with myself where I would suck all excess inbound/outbound capacity to/from channels I have with other parties? In such a case, I would not have to even burden Bitcoin blockchain with the looping activity.

**Tags:** lightning-network, ln-channel-balance-management, ln-loop

> **Comments:**
> **username_1**: Could you elaborate how a channel would be able to buffer for all other channels? Do you for example propose to have a wumbo channel between two nodes you control with large balances on both sides?  
> **username_0**: I thought about it and I came to the same conclusion as you, to have two nodes I control and big channel between. My first naive thought that lead me to pose the question would require a channel with three parties connected to it where I would represent two parties and the third party would be a node of others for connection to the LN.  

---

## 1 answers

### Answer by username_2 on 2020-09-27. Score: 0

Yes you can rebalance your channels by creating circular onions. That will also cost you routing fees which are currently low.

However in order to get onchain funds you would have to close a channel (or open a channel if you want more liquidity). This means you cannot really swap on chain with off chain funds to provide yourself with inbound liquidity - wich is what loop / submarine swaps are for.

If you use c Lightning you can use the rebalce plugin <https://github.com/lightningd/plugins/tree/master/rebalance> or the drain plugin: <https://github.com/lightningd/plugins/tree/master/drain> depending on what exactly you want to do you might have to fork these plugins


---

