uniffi_lipalightninglib

Function handle_notification

source
pub fn handle_notification(
    config: LightningNodeConfig,
    notification_payload: String,
    notification_toggles: NotificationToggles,
    timeout: Duration,
) -> Result<Notification, NotificationHandlingError>
Expand description

Handles a notification.

Notifications are used to wake up the node in order to process some request. Currently supported requests are:

  • Receive a payment from a previously issued bolt11 invoice.
  • Receive a payment from a confirmed swap.
  • Issue an invoice in order to receive an LNURL payment.

Requires network: yes