{"repo":"alexbosworth/ln-service","free":true,"listed":false,"github":"https://github.com/alexbosworth/ln-service","clone":"git clone https://github.com/alexbosworth/ln-service.git","description":"Node.js interface to LND","language":"JavaScript","stars":320,"topics":["lnd","bitcoin","grpc","lightning-network","lightning"],"license":"MIT","category":"blockchain-web3","readme_excerpt":"Lightning Network Service Overview The core of this project is a gRPC interface for node.js projects, available through npm. Supported LND versions: - v0.21.0-beta to v0.21.2-beta - v0.20.0-beta to v0.20.3-beta For typescript-ready methods, check out https://github.com/alexbosworth/lightning#readme Installing LND There is a guide to installing LND on the LND repository: https://github.com/lightningnetwork/lnd/blob/master/docs/INSTALL.md Example LND configuration options ( /.lnd/lnd.conf) If you are interacting with your node remotely, make sure to set (in [Application Options] ) If you're adding TLS settings, regenerate the cert and key by stopping lnd, deleting the tls.cert and tls.key - then restart lnd to regenerate. If you're going to use extended gRPC APIs, make sure to add the APIs to make tags. Using gRPC You can install ln-service service via npm npm install ln-service To use authenticated methods you will need to provide LND credentials. To export the credentials via a command, you can install balanceofsatoshis: npm install -g balanceofsatoshis and export via bos credentials --cleartext Or you can export them manually: Run base64 on the tls.cert and admin.macaroon files to get the encoded authentication data to create the LND connection. You can find these files in the LND directory. ( /.lnd or /Library/Application Support/Lnd) base64 tls.cert base64 data/chain/bitcoin/mainnet/admin.macaroon Be careful to avoid copying any newline characters in creds. To exclude them","default_branch":null,"files":null,"tree":[],"storefront":"/r/alexbosworth","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/alexbosworth/ln-service/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."}