File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
lightning-liquidity/src/lsps5 Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -71,9 +71,15 @@ pub enum LSPS5ServiceEvent {
7171 request_id : LSPSRequestId ,
7272 } ,
7373
74- /// A notification needs to be sent to a client's webhook
75- ///
7674 /// This event occurs when the LSP needs to send a notification to a client's webhook.
75+ ///
76+ /// When this event is received, the LSP should:
77+ /// 1. Serialize the notification to JSON
78+ /// 2. Make an HTTP POST request to the provided URL with the given headers and the serialized notification
79+ ///
80+ /// When the client receives this notification, they will process it and generate a
81+ /// `WebhookNotificationReceived` event on their side. The client will validate the
82+ /// signature using the LSP's node ID to ensure the notification is authentic.
7783 SendWebhookNotifications {
7884 /// Client node ID to be notified
7985 counterparty_node_id : PublicKey ,
You can’t perform that action at this time.
0 commit comments