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.
- git clone https://github.com/synonymdev/ldk-node-js (or fork)
- cd ./ldk-node-js
- npm i
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
npm run test
npm run start-node
npm start