{"repo":"getAlby/lndhub.go","free":true,"listed":false,"github":"https://github.com/getAlby/lndhub.go","clone":"git clone https://github.com/getAlby/lndhub.go.git","description":"Accounting wrapper for the Lightning Network. It provides separate accounts for end-users. (LndHub compatible API written in Go)","language":"Go","stars":91,"topics":["lnd","lightning-network","bitcoin"],"license":"GPL-3.0","category":"blockchain-web3","readme_excerpt":"LndHub.go Wrapper for Lightning Network Daemon (lnd) ⚡ It provides separate accounts for end users. Live deployment at ln.getalby.com. API documentation LndHub compatible API implemented in Go using relational database backends Using a relational database (PostgreSQL) Focussing only on Lightning (no onchain functionality) No runtime dependencies (simple Go executable) Extensible to add more features Configuration All required configuration is done with environment variables and a .env file can be used. Check the .env example for an example. Available configuration + DATABASE URI : The URI for the database. (eg. postgresql://user:password@localhost:5432/lndhub?sslmode=disable ) + JWT SECRET : We use JWT for access tokens. Configure your secret here + JWT ACCESS EXPIRY : How long the access tokens should be valid (in seconds, default 2 days) + JWT REFRESH EXPIRY : How long the refresh tokens should be valid (in seconds, default 7 days) + LND ADDRESS : LND gRPC address (with port) (e.g. localhost:10009 ) + LND MACAROON HEX : LND macaroon (hex-encoded contents of admin.macaroon or lndhub.macaroon , see below) + LND MACAROON FILE : LND macaroon (provided as path on a filesystem) + LND CERT HEX : LND certificate (hex-encoded contents of tls.cert ) + LND CERT FILE : LND certificate (provided as path on a filesystem) + CUSTOM NAME : Name used to overwrite the node alias in the getInfo call + LOG FILE PATH : (optional) By default all logs are written to STDOUT. If you want to log to a","default_branch":null,"files":null,"tree":[],"storefront":"/r/getAlby","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/getAlby/lndhub.go/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}