All Projects → cuaritas → perfectly-balanced

cuaritas / perfectly-balanced

Licence: MIT license
Script to make your LND node pefectly balanced as all things should be

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to perfectly-balanced

lightning-jet
Lightning Jet is a fully automated rebalancer for Lightning nodes. Jet optimizes channel liquidity allocation based on routing volume, missed routing opportunities (htlcs), and other variables.
Stars: ✭ 33 (+26.92%)
Mutual labels:  lightning-network, rebalance, lnd
balanceofsatoshis
Tool for working with the balance of your satoshis on LND
Stars: ✭ 447 (+1619.23%)
Mutual labels:  lightning-network, rebalance, lnd
lightningtip
Get tips via the Lightning Network
Stars: ✭ 91 (+250%)
Mutual labels:  lightning-network, lnd
lightningj
Core implementation of the lightningj API implementations.
Stars: ✭ 41 (+57.69%)
Mutual labels:  lightning-network, lnd
shango-lightning-wallet
Shango Lightning Wallet
Stars: ✭ 65 (+150%)
Mutual labels:  lightning-network, lnd
umbrel-middleware
RESTful Bitcoin and Lightning API for Umbrel
Stars: ✭ 21 (-19.23%)
Mutual labels:  lightning-network, lnd
lnregtest
Regtest Lightning Networks for (python) integration testing
Stars: ✭ 17 (-34.62%)
Mutual labels:  lightning-network, lnd
bitcoin-stack
Docker setup for Bitcoin, Elements/Liquid, LND, C-Lightning, Eclair, & Electrs in regtest mode
Stars: ✭ 66 (+153.85%)
Mutual labels:  lightning-network, lnd
Lncli Web
Light-weight web client for the lnd daemon written in NodeJS / Angular.
Stars: ✭ 181 (+596.15%)
Mutual labels:  lightning-network
lnurl
LNURL implementation for Python.
Stars: ✭ 51 (+96.15%)
Mutual labels:  lightning-network
Webln
Spec and client library for WebLN apps and providers
Stars: ✭ 165 (+534.62%)
Mutual labels:  lightning-network
Ln Service
Node.js interface to LND
Stars: ✭ 191 (+634.62%)
Mutual labels:  lightning-network
LNPBPs
LNP/BP standards for bitcoin layer 2 & 3 protocols
Stars: ✭ 158 (+507.69%)
Mutual labels:  lightning-network
Zeus
A mobile Bitcoin/Lightning app for lnd, c-lightning, and Eclair node operators ⚡️
Stars: ✭ 175 (+573.08%)
Mutual labels:  lightning-network
Paper
Lightning Network Paper
Stars: ✭ 136 (+423.08%)
Mutual labels:  lightning-network
lntop
⚡ LN terminal dashboard 📊
Stars: ✭ 170 (+553.85%)
Mutual labels:  lightning-network
Eclair Mobile
An Android wallet for the Lightning Network
Stars: ✭ 231 (+788.46%)
Mutual labels:  lightning-network
Spec
[OLD!] RGB Protocol specifications for Bitcoin-based digital assets
Stars: ✭ 145 (+457.69%)
Mutual labels:  lightning-network
Breezmobile
Lightning Network mobile client
Stars: ✭ 225 (+765.38%)
Mutual labels:  lightning-network
rebalance-app
💸 Optimal lazy portfolio rebalancing calculator (in Rust)
Stars: ✭ 37 (+42.31%)
Mutual labels:  rebalance

Perfectly Balanced ⚖️

image

Script to make your LND node pefectly balanced as all things should be. Inspired by Igniter, rebalance-lnd and Balance Of Satoshi

Requirements:

Almost all included by default in most linux distros:

  • bash
  • python3
  • pip
  • bc
  • wget
  • unzip

Make sure your LND path is located or linked to $HOME/.lnd

Usage

Not need to edit anything, just run it! 🚀

Usage: ./perfectlybalanced.sh {-v|-h|-m=VALUE|-t=VALUE|list|rebalance}

Optional:
        -v, --version
                Shows the version for this script

        -h, --help
                Shows this help

        -i=CHANNEL_ID, --ignore=CHANNEL_ID
                Ignores a specific channel id useful only if passed before 'list' or 'rebalance'
                It can be used many times and should match a number of 18 digits

        -m=MAX_FEE, --max-fee=MAX_FEE
                (Default: 50) Changes max fees useful only if passed before 'list' or 'rebalance'

        -t=TOLERANCE, --tolerance=TOLERANCE
                (Default: 0.95) Changes tolerance useful only if passed before 'rebalance'

list:
        Shows a list of all channels in compacted mode using 'rebalance.py -c -l'
        for example to: './perfectlybalanced.sh --tolerance=0.99 list'

rebalance:
        Tries to rebalance unbalanced channels with default max fee of 50 and tolerance 0.95
        for example to: './perfectlybalanced.sh --max-fee=10 --tolerance=0.98 rebalance'

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

image

Contribute

Feel free to collaborate with code or donate a few Satoshi using your LND node 😄

lncli sendpayment --keysend 03e7299ced214b19b87ed87979462d9aee3ec07a42fe6e2211854bfa4cb32b0bb8 100 # sats

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].