diff options
| author | Kieran <kieran@harkin.me> | 2024-10-15 11:15:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-15 11:15:54 +0100 |
| commit | 1e2f19863ca56754daa2466881eb22087a71b17d (patch) | |
| tree | 4f7be759dce290fea1d3ae10c403260b466ee16c /47.md | |
| parent | 53afaaece61f02e92b5ef9c3e9c32945c7ebf522 (diff) | |
| parent | e381b577c997b849fa544eea7dc9f08b360b4a33 (diff) | |
Merge branch 'master' into nip71-imeta
Diffstat (limited to '47.md')
| -rw-r--r-- | 47.md | 12 |
1 files changed, 5 insertions, 7 deletions
| @@ -38,7 +38,7 @@ a plaintext string with the supported commands, space-separated, eg. `pay_invoic | |||
| 38 | Both the request and response events SHOULD contain one `p` tag, containing the public key of the **wallet service** if this is a request, and the public key of the **user** if this is a response. The response event SHOULD contain an `e` tag with the id of the request event it is responding to. | 38 | Both the request and response events SHOULD contain one `p` tag, containing the public key of the **wallet service** if this is a request, and the public key of the **user** if this is a response. The response event SHOULD contain an `e` tag with the id of the request event it is responding to. |
| 39 | Optionally, a request can have an `expiration` tag that has a unix timestamp in seconds. If the request is received after this timestamp, it should be ignored. | 39 | Optionally, a request can have an `expiration` tag that has a unix timestamp in seconds. If the request is received after this timestamp, it should be ignored. |
| 40 | 40 | ||
| 41 | The content of requests and responses is encrypted with [NIP04](https://github.com/nostr-protocol/nips/blob/master/04.md), and is a JSON-RPCish object with a semi-fixed structure: | 41 | The content of requests and responses is encrypted with [NIP04](04.md), and is a JSON-RPCish object with a semi-fixed structure: |
| 42 | 42 | ||
| 43 | Request: | 43 | Request: |
| 44 | ```jsonc | 44 | ```jsonc |
| @@ -173,7 +173,7 @@ Request: | |||
| 173 | "amount": 123, // invoice amount in msats, required | 173 | "amount": 123, // invoice amount in msats, required |
| 174 | "pubkey": "03...", // payee pubkey, required | 174 | "pubkey": "03...", // payee pubkey, required |
| 175 | "preimage": "0123456789abcdef...", // preimage of the payment, optional | 175 | "preimage": "0123456789abcdef...", // preimage of the payment, optional |
| 176 | "tlv_records: [ // tlv records, optional | 176 | "tlv_records": [ // tlv records, optional |
| 177 | { | 177 | { |
| 178 | "type": 5482373484, // tlv type | 178 | "type": 5482373484, // tlv type |
| 179 | "value": "0123456789abcdef" // hex encoded tlv value | 179 | "value": "0123456789abcdef" // hex encoded tlv value |
| @@ -208,7 +208,7 @@ Request: | |||
| 208 | "method": "multi_pay_keysend", | 208 | "method": "multi_pay_keysend", |
| 209 | "params": { | 209 | "params": { |
| 210 | "keysends": [ | 210 | "keysends": [ |
| 211 | {"id": "4c5b24a351", pubkey": "03...", "amount": 123}, | 211 | {"id": "4c5b24a351", "pubkey": "03...", "amount": 123}, |
| 212 | {"id": "3da52c32a1", "pubkey": "02...", "amount": 567, "preimage": "abc123..", "tlv_records": [{"type": 696969, "value": "77616c5f6872444873305242454d353736"}]}, | 212 | {"id": "3da52c32a1", "pubkey": "02...", "amount": 567, "preimage": "abc123..", "tlv_records": [{"type": 696969, "value": "77616c5f6872444873305242454d353736"}]}, |
| 213 | ], | 213 | ], |
| 214 | } | 214 | } |
| @@ -358,8 +358,7 @@ Request: | |||
| 358 | ```jsonc | 358 | ```jsonc |
| 359 | { | 359 | { |
| 360 | "method": "get_balance", | 360 | "method": "get_balance", |
| 361 | "params": { | 361 | "params": {} |
| 362 | } | ||
| 363 | } | 362 | } |
| 364 | ``` | 363 | ``` |
| 365 | 364 | ||
| @@ -379,8 +378,7 @@ Request: | |||
| 379 | ```jsonc | 378 | ```jsonc |
| 380 | { | 379 | { |
| 381 | "method": "get_info", | 380 | "method": "get_info", |
| 382 | "params": { | 381 | "params": {} |
| 383 | } | ||
| 384 | } | 382 | } |
| 385 | ``` | 383 | ``` |
| 386 | 384 | ||