Skip to content

Latest commit

 

History

History
33 lines (23 loc) · 856 Bytes

README.md

File metadata and controls

33 lines (23 loc) · 856 Bytes

Sample LDK node

The sample LDK node is a sandboxing environment to repoduce the current LDK-Sample in javascript using the TypeScript bindings. Note that this repository is currently experimental and thus a work in progress, so should be considered incomplete.

Installation

  1. git clone https://github.com/synonymdev/ldk-node-js (or fork)
  2. cd ./ldk-node-js
  3. npm i

Configuration

Copy and edit the .env_sample file to match your local environment. LN_REMOTE_HOST is provided for quick connection testing. Alternatively use connectpeer(pubkey@host:port) from the REPL.

cp ./.env_sample ./.env

Running Tests

npm run test

Running Node REPL

npm run start-node

Running Browser node

npm start