Cuaritas's Posts

Perfectly balanced as all things should be

Posted about 3 years ago

I developed this script for fun to  pefectly balanced your LND node as all things should be.

Note: you do not need to rebalance your channels all time, it can be expensive to rebalance some channels read this: https://lightningnetwork.plus/questions/59

Inspired by Igniter and Balance Of Satoshi. It is based on rebalance-lnd by Dr. C-Otto and uses it under the hood. It is pretty straightfoward, you can list your channels and rebalance them, some examples:

List all channels within tolerance 0.92:
./perfectlybalanced.sh --tolerance=0.92 list
or
./perfectlybalanced.sh -t=0.92 list

Default list within tolerance 0.95:
./perfectlybalanced.sh list

Unbalanced channels being rebalanced max fee 10 sats and tolerance 0.97:
./perfectlybalanced.sh --max-fee=10 --tolerance=0.97 rebalance
or
./perfectlybalanced.sh -m=10 -t=0.97 rebalance

Default max fee 50 sats and tolerance 0.95:
./perfectlybalanced.sh rebalance

Rebalance with max fee 10 sats and tolerance 0.98, ignoring channel id '761128128258703361':
./perfectlybalanced.sh --ignore=761128128258703361 -t=0.98 -m=10 rebalance

Feel free to check the code here: https://github.com/cuaritas/perfectly-balanced or keysend me 1 sat :)

lncli sendpayment --keysend 03e7299ced214b19b87ed87979462d9aee3ec07a42fe6e2211854bfa4cb32b0bb8 1 # sat
Lightning Network Node
Cuaritas
Capacity: 500,000 SAT
Channels: 1