LNC - LN.Capital
LNC is a lightning network capital management tool built for routing nodes. The ultimate goal is to create a set of tools that combine node & channel introspection, capital management and network analysis accross a set of tools that simplifies the task of operating a routing node. This goal might change, based on input from the community.
If you want to contribute to this project, feel free to join the Telegram group, fork this repo or submit a feature request.
Roadmap
This is a hight level overview of possible future features. Feel free to suggest new features.
- HTLC stream and store to database from LND
- Combine transaction, channel, fee and htlc data
- Create profit and loss overview.
- Channel categorization and grouping
- Fee logic/rules
- Rebalancing logic/rules
- A rest API
- Command line interface
- Visual interface (Webinterface)
- Add support for c-lightning
Install
git clone https://github.com/lncapital/lnc.git
cd lnc
go install ./cmd/lnc
Database
Additional requirements:
- Postgres database
- golang-migrate (https://github.com/golang-migrate/migrate/tree/master/cmd/migrate)
Create database
Enter postgresql cli (using psql
) and create the database:
CREATE USER lnc WITH CREATEDB AND PASSWORD '
'
;
CREATE DATABASE lnc WITH OWNER lnc;
quit;
Make sure you are in the root directory of lnc. Then migrate up the database:
psql
migrate --database "postgres://lnc:
@localhost:5432/lnc?sslmode=disable
"
--path ./migrations up
Developer
Requirements outside of go mod
- golang-migrate (https://github.com/golang-migrate/migrate/tree/master/cmd/migrate)