Skip to content

Latest commit

 

History

History
 
 

lnd

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

TypeScript LND app

This is an example app that shows how Polar can be used in your development workflow while working on Lightning Network applications.

This example is a simple app, designed for LND nodes, that allows the user to:

  1. Open a channel
  2. List peers
  3. List pending channels
  4. List open channels

Getting Started

  1. Start the Polar app using yarn dev or opening the app itself
  2. In Polar, run an environment with at least one lnd node and has at least two nodes (the default environment, which has one of each node type, is good)
  3. Run cp .env.example .env in this directory
  4. Under the Connect tab for the lnd node in your Polar environment, copy the following values to .env:
    • Copy the Admin Macaroon path to ALICE_LND_MACAROON_PATH
    • Copy the GRPC Host path to ALICE_LND_HOST
    • Copy the TLS Cert path to ALICE_TLS_CERT_PATH
  5. Install this app's dependencies by running yarn
  6. Run the app by running yarn start