All Projects → prusnak → suez

prusnak / suez

Licence: GPL-3.0 license
Tool for pretty printing and optimizing Lightning Network channels.

Programming Languages

python
139335 projects - #7 most used programming language
Nix
1067 projects

Projects that are alternatives of or similar to suez

Lndmanage
Channel management tool for lightning network daemon (LND) operators.
Stars: ✭ 114 (+58.33%)
Mutual labels:  lightning-network
Paper
Lightning Network Paper
Stars: ✭ 136 (+88.89%)
Mutual labels:  lightning-network
Lndhub
Wrapper for Lightning Network Daemon. It provides separate accounts and trust minimization for end users
Stars: ✭ 203 (+181.94%)
Mutual labels:  lightning-network
Ptarmigan
Lightning Network (BOLT)
Stars: ✭ 125 (+73.61%)
Mutual labels:  lightning-network
Umbrel Os
Run Umbrel Bitcoin and Lightning node on a Raspberry Pi in one click
Stars: ✭ 132 (+83.33%)
Mutual labels:  lightning-network
Webln
Spec and client library for WebLN apps and providers
Stars: ✭ 165 (+129.17%)
Mutual labels:  lightning-network
Lightning Faucet
A faucet for the Lightning Network!
Stars: ✭ 56 (-22.22%)
Mutual labels:  lightning-network
Breezmobile
Lightning Network mobile client
Stars: ✭ 225 (+212.5%)
Mutual labels:  lightning-network
Lnbits
LNbits, free and open-source lightning-network wallet/accounts system.
Stars: ✭ 135 (+87.5%)
Mutual labels:  lightning-network
Ln Service
Node.js interface to LND
Stars: ✭ 191 (+165.28%)
Mutual labels:  lightning-network
Phoenix
Phoenix is a non custodial Bitcoin wallet using Lightning to send/receive payments.
Stars: ✭ 129 (+79.17%)
Mutual labels:  lightning-network
Thunderhub
ThunderHub LND Lightning Node Manager in your Browser
Stars: ✭ 131 (+81.94%)
Mutual labels:  lightning-network
Zeus
A mobile Bitcoin/Lightning app for lnd, c-lightning, and Eclair node operators ⚡️
Stars: ✭ 175 (+143.06%)
Mutual labels:  lightning-network
Plugins
Community curated plugins for c-lightning
Stars: ✭ 120 (+66.67%)
Mutual labels:  lightning-network
Bitcoin S
Bitcoin Implementation in Scala
Stars: ✭ 206 (+186.11%)
Mutual labels:  lightning-network
Lightning Rfc
Lightning Network Specifications
Stars: ✭ 1,224 (+1600%)
Mutual labels:  lightning-network
Spec
[OLD!] RGB Protocol specifications for Bitcoin-based digital assets
Stars: ✭ 145 (+101.39%)
Mutual labels:  lightning-network
Eclair Mobile
An Android wallet for the Lightning Network
Stars: ✭ 231 (+220.83%)
Mutual labels:  lightning-network
Spark Wallet
⚡️ A minimalistic wallet GUI for c-lightning, accessible over the web or through mobile and desktop apps.
Stars: ✭ 215 (+198.61%)
Mutual labels:  lightning-network
Lncli Web
Light-weight web client for the lnd daemon written in NodeJS / Angular.
Stars: ✭ 181 (+151.39%)
Mutual labels:  lightning-network

Suez

Tool for pretty printing and optimizing Lightning Network channels.

screenshot

Installation

  1. Install poetry
  2. poetry install
  3. poetry run ./suez

Channel fee policy

You can set channel fees by passing --base-fee and --fee-rate parameters.

For example:

poetry run ./suez --base-fee 1000 --fee-rate 200

You can override the channel fee policy by changing the FeePolicy class.

Example implementation does the following:

  • sets lower fee rate for channels with mostly local balance
  • sets higher fee rate for channels with mostly remote balance
  • sets medium (close to specified) fee rate for balanced channels

You control the spread via the --fee-spread argument. By default --fee-spread is set to 0.0 (no spread).

For example:

poetry run ./suez --base-fee 1000 --fee-rate 500 --fee-spread 1.8

This will set the fee rate above 500 for channels with mostly remote balance and below 500 for channels with mostly local balance.

Lightning node support

Currently, Suez supports LND (both via lncli and via the REST API) and c-lightning.

By default it uses LND (lncli).

You can use it with c-lightning as follows:

poetry run ./suez --client=c-lightning

You can connect to LND using the REST API as follows:

SSL_CERT_FILE=</path/to/tls.cert> poetry run ./suez --client=lnd-rest --client-args=rpcserver=https://<rpc-ip>:<rpc-port> --client-args=macaroonpath=</path/to/admin.macaroon> --client-args=tlscertpath=</path/to/tls.cert>

If you need to pass additional options to the lncli/lightning-cli you can do so:

(single argument)

poetry run ./suez --client=c-lightning --client-args=--conf=/usr/local/etc/lightningd-bitcoin.conf

(multiple arguments)

poetry run ./suez --client-args=--rpcserver=host:10009 --client-args=--macaroonpath=admin.macaroon --client-args=--tlscertpath=tls.cert

Adding support requires writing a client similar to lndclient.py and instantiating it in suez.py.

Donate

You can tip me some satoshis via tippin.me/@pavolrusnak

or you can donate via Spontaneous AMP Payment (data field encodes tip=suez):

lncli sendpayment --amt 10000 --amp --dest 0385218f0e307b6a0e989d2a717d346942d96b4fd550e937de5f8ffe1568510a18 --data 7629168=7375657a

License

This software is licensed under the GNU General Public License v3.

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].