Rebalance-lnd

From lightningwiki.net
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Rebalancing can be done using a script. Download link is below.

Usage

first create a list:

./rebalance.py -l | head -n 30
( 1) Channel ID:  595082081290616832
Pubkey:           03a503d8e30f2ff407096d235b5db63b4fcf3f89a653acb6f43d3fc492a7674019
Local ratio:      0.500
Capacity:         482,819
Remote balance:   239,761
Local balance:    239,582
Amount for 50-50: 90
|=  |

( 2) Channel ID:  586121061537611776
Pubkey:           020de548b86e373e795e37343c9ef6f972d45ade479cc71ed5a9a7dac2588d0a37
Local ratio:      0.224
Capacity:         20,000
Remote balance:   12,693
Local balance:    3,672
Amount for 50-50: 4,511
||

( 3) Channel ID:  613825456036642817
Pubkey:           035ef1c0ef3c3273820abeb6136a3c79736d7af4e1cb8783410eb022b5a46390a3
Local ratio:      0.173
Capacity:         20,000
Remote balance:   13,531
Local balance:    2,834
Amount for 50-50: 5,349
||

Choose a channel (#2 for example, and rebalance):

./rebalance.py -t 2 -a 4000

Download

https://github.com/C-Otto/rebalance-lnd