lily-wallet
lily-wallet copied to clipboard
Add C-Lightning Support
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.tsfile tolily-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.