Skip to content
This repository was archived by the owner on Oct 24, 2022. It is now read-only.

Conversation

Jasonvdb
Copy link
Contributor

@Jasonvdb Jasonvdb commented May 3, 2021

Channels can now be funded visa external wallets initiating the process with the openChannelStream function and then progressing the funding state via the fundingStateStep function.

Steps:

  1. Call openChannelStream to start the process. The onUpdate callback will be called each time the state progresses.
  2. Use the fundingAmount and fundingAddress returned on the first callback result to create a PSBT in your external wallet with inputs (not yet signed).
  3. Use fundingStateStep to verify the PSBT with LND.
  4. Sign the PSBT inputs in your external wallet.
  5. Use fundingStateStep to finalize the PSBT with LND.
  6. onUpdate callback from step 1 will be called again with the updated channel status. onDone callback will be called once the tx has had all required confirmations.

@Jasonvdb Jasonvdb requested a review from coreyphillips May 3, 2021 09:39
@coreyphillips coreyphillips merged commit 02a97ae into master May 4, 2021
@coreyphillips coreyphillips deleted the psbt branch May 4, 2021 23:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants