From ebb1de1d55d18ae464b1f977b33a464b5af45862 Mon Sep 17 00:00:00 2001 From: im-adithya Date: Tue, 28 May 2024 19:13:05 +0530 Subject: [PATCH 1/2] chore: update README --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e3854ab..df2d6f0 100644 --- a/README.md +++ b/README.md @@ -234,13 +234,13 @@ Notifies about new events matching the filter provided via webhooks. ------------------------------------------------------------------------------------------ -### Subscribe to NWC Events +### Subscribe to NWC Notifications -Notifies about new response events which are requested by the pubkey to the wallet service. +Notifies about `23196` kind events (NWC notifications) of the connection pubkey from the wallet service.
-POST /nip47/subscriptions +POST /nip47/notifications #### Request Body @@ -269,7 +269,7 @@ Notifies about new response events which are requested by the pubkey to the wall "id": "a16ycf4a01bcxx........xxxxx", "pubkey": "a16y69effexxxx........xxxxx", "created_at": 1709033612, - "kind": 23195, + "kind": 23196, "tags": [ [ "p", From 68fa9b9227b5da615f58f73aff7eb1adf104673a Mon Sep 17 00:00:00 2001 From: im-adithya Date: Tue, 28 May 2024 19:13:21 +0530 Subject: [PATCH 2/2] chore: typo in logs --- internal/nostr/nostr.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/nostr/nostr.go b/internal/nostr/nostr.go index 38301fa..7ae4631 100644 --- a/internal/nostr/nostr.go +++ b/internal/nostr/nostr.go @@ -400,7 +400,7 @@ func (svc *Service) NIP47NotificationHandler(c echo.Context) error { // send in a pubkey and authenticate by signing if err := c.Bind(&requestData); err != nil { return c.JSON(http.StatusBadRequest, ErrorResponse{ - Message: "Error decoding subscription request", + Message: "Error decoding notification request", Error: err.Error(), }) }