Awesome
c-lightning-plugins
A collection of plugins for c-lightning to do convenient things. At the moment the utilities primarily perform useful filter and aggregation, but the embeded library can be extended for many things.
Please contribute ideas!
Usage
Start lightningd with the plugin-dir
option pointing to this repository
lightningd --plugin-dir <path to this repo>
Alternatively you can add a line to the c-lightning config (~/.lightning/config)
...
plugin-dir=<path to this repo>
...
RPC Commands
balance
: Aggregated on-chain balance and channel balance information. Still a work in progress...nodestats
: Get statistical information about a particular node, akin to 1ML statschannelstats
: Get stats about channelsinvoicestats
: Get stats about invoicespaymentstats
: Get stats about paymentsquickfund
: Use onchain funds to fundamount
tonum_channels
, simply creating channels with top capacity nodes. This is not recommended for mainnet as it's a bad strategy.closeall
: Close all active channels, with option to force close after timeoutgetnetworkinfo
: Get statistical information about the current state of the networkfilterchannels
: Filter channels by various parameters
Pretty Print
To pretty print the JSON, simply pipe the output to jq
lightning-cli balance | jq
Future Command Ideas
- Create Circular Route
- Auto Balance Channels