diff options
| author | Vic <88121568+vicariousdrama@users.noreply.github.com> | 2023-10-11 00:57:12 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-10-10 21:57:12 -0700 |
| commit | 21c6c12c524cb71f18e068c9bcf223cda0214b5f (patch) | |
| tree | f35a237dac32527f00c9b3fe2086cef27fbae9d4 | |
| parent | e9f8bc27b7f14355a3c4a321e4368046125a3dc0 (diff) | |
Update 57.md (#808)
Clarify how multiple relays should be included in the zap request event
| -rw-r--r-- | 57.md | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -45,7 +45,7 @@ Example: | |||
| 45 | "kind": 9734, | 45 | "kind": 9734, |
| 46 | "content": "Zap!", | 46 | "content": "Zap!", |
| 47 | "tags": [ | 47 | "tags": [ |
| 48 | ["relays", "wss://nostr-pub.wellorder.com"], | 48 | ["relays", "wss://nostr-pub.wellorder.com", "wss://anotherrelay.example.com"], |
| 49 | ["amount", "21000"], | 49 | ["amount", "21000"], |
| 50 | ["lnurl", "lnurl1dp68gurn8ghj7um5v93kketj9ehx2amn9uh8wetvdskkkmn0wahz7mrww4excup0dajx2mrv92x9xp"], | 50 | ["lnurl", "lnurl1dp68gurn8ghj7um5v93kketj9ehx2amn9uh8wetvdskkkmn0wahz7mrww4excup0dajx2mrv92x9xp"], |
| 51 | ["p", "04c915daefee38317fa734444acee390a8269fe5810b2241e5e6dd343dfbecc9"], | 51 | ["p", "04c915daefee38317fa734444acee390a8269fe5810b2241e5e6dd343dfbecc9"], |
| @@ -66,7 +66,7 @@ A signed `zap request` event is not published, but is instead sent using a HTTP | |||
| 66 | - `nostr` is the `9734` `zap request` event, JSON encoded then URI encoded | 66 | - `nostr` is the `9734` `zap request` event, JSON encoded then URI encoded |
| 67 | - `lnurl` is the lnurl pay url of the recipient, encoded using bech32 with the prefix `lnurl` | 67 | - `lnurl` is the lnurl pay url of the recipient, encoded using bech32 with the prefix `lnurl` |
| 68 | 68 | ||
| 69 | This request should return a JSON response with a `pr` key, which is the invoice the sender must pay to finalize his zap. Here is an example flow: | 69 | This request should return a JSON response with a `pr` key, which is the invoice the sender must pay to finalize his zap. Here is an example flow in javascript: |
| 70 | 70 | ||
| 71 | ```javascript | 71 | ```javascript |
| 72 | const senderPubkey // The sender's pubkey | 72 | const senderPubkey // The sender's pubkey |