lily-wallet icon indicating copy to clipboard operation
lily-wallet copied to clipboard

Add C-Lightning Support

Open KayBeSee opened this issue 3 years ago • 0 comments

Context

Lily currently supports connecting to LND nodes to send and receive lightning channels as well as open and close channels to other accounts.

This logic required is outlined in the LightningBaseProvider abstract class.

Implementation

  • Add CLN.ts file to lily-wallet/packages/shared-server/src/LightningProviders
  • Create a class that extends LightningBaseProvider (export class LND extends LightningBaseProvider {...} )
  • Write logic that conforms to the inputs/outputs of the LightningBaseProvider class

It looks like there is a c-lightning-REST put out by Ride-The-Lightning that implements a REST API for CLN.

KayBeSee avatar Oct 12 '22 05:10 KayBeSee