Skip to content

Commit

Permalink
Add registerWebhook API to sdk-flutter
Browse files Browse the repository at this point in the history
  • Loading branch information
erdemyerebasmaz committed Nov 10, 2023
1 parent 756b21e commit ca2772e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions libs/sdk-flutter/lib/breez_sdk.dart
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,13 @@ class BreezSDK {

Stream<NodeState?> get nodeStateStream => nodeStateController.stream;

/// Register for webhook callbacks at the given `webhook_url` whenever a new payment is received.
///
/// More webhook types may be supported in the future.
Future<void> registerWebhook({required String webhookUrl}) async {
return _lnToolkit.registerWebhook(webhookUrl: webhookUrl);
}

/// connect initializes the global NodeService, schedule the node to run in the cloud and
/// run the signer. This must be called in order to start communicate with the node
///
Expand Down

0 comments on commit ca2772e

Please sign in to comment.