Skip to content

Commit

Permalink
Merge pull request #67 from getAlby/task-notif-fix
Browse files Browse the repository at this point in the history
chore: update README
  • Loading branch information
im-adithya authored May 28, 2024
2 parents 14052de + 68fa9b9 commit f1c4fe6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

<details>
<summary>
<code>POST</code> <code><b>/nip47/subscriptions</b></code>
<code>POST</code> <code><b>/nip47/notifications</b></code>
</summary>

#### Request Body
Expand Down Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion internal/nostr/nostr.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
})
}
Expand Down

0 comments on commit f1c4fe6

Please sign in to comment.