https://github.com/grunch/ln-registration
Simple Lightning Network events registration app
https://github.com/grunch/ln-registration
Last synced: 23 days ago
JSON representation
Simple Lightning Network events registration app
- Host: GitHub
- URL: https://github.com/grunch/ln-registration
- Owner: grunch
- License: mit
- Created: 2022-06-30T15:20:54.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-06-30T17:58:08.000Z (almost 3 years ago)
- Last Synced: 2025-02-09T17:24:13.536Z (3 months ago)
- Language: JavaScript
- Size: 5.97 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Lightning Network event registration app
Simple lightning event registration 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/ln-registration.git
$ cd ln-registration
$ npm install
```# Executing
```
$ npm start
```