https://github.com/grunch/lntip
Simple lightning tipping nodejs app, this app connects to a lnd node using gRPC.
https://github.com/grunch/lntip
Last synced: 4 months ago
JSON representation
Simple lightning tipping nodejs app, this app connects to a lnd node using gRPC.
- Host: GitHub
- URL: https://github.com/grunch/lntip
- Owner: grunch
- License: mit
- Created: 2021-06-08T19:56:47.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-03T15:35:19.000Z (over 3 years ago)
- Last Synced: 2023-03-11T10:12:51.216Z (about 2 years ago)
- Language: JavaScript
- Size: 140 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lightning Network tipping app
Simple lightning tipping nodejs app, this app connects to a lnd node using gRPC.# Instalation
To connect with a lnd node we need to set 3 variables in the `.env` file .*LND_CERT_BASE64:* LND node TLS certificate on base64 format, you can get it with `base64 ~/.lnd/tls.cert | tr -d '\n'` on the lnd node.
*LND_MACAROON_BASE64:* Macaroon file on base64 format, the macaroon file contains permission for doing actions on the lnd node, for this app a good choice is to use the `invoice.macaroon` file, you can get it with `base64 ~/.lnd/data/chain/bitcoin/mainnet/invoice.macaroon | tr -d '\n'`.
*LND_GRPC_HOST:* IP address or domain name from the LND node and the port separated by colon (`:`), example: `192.168.0.2:10009`.
To install just run:
```
$ git clone [email protected]:grunch/lntip.git
$ cd lntip
$ npm install
```
# Executing
```
$ npm start
```