upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/47.md
diff options
context:
space:
mode:
authorFrancisco Calderón <fjcalderon@gmail.com>2024-11-04 15:39:21 -0300
committerGitHub <noreply@github.com>2024-11-04 15:39:21 -0300
commit03f3bc39678262ecbd5d870c9da44723023557ff (patch)
treee75ecf32d3bc906a8b26314488a1ae90996169c1 /47.md
parentf72a2f69ed93cf442e83bf9e7e16f6c06da40384 (diff)
parent6bcd89c097e97e65dbc95e7c6b7b8348e8dd6b5c (diff)
Merge branch 'master' into p2p-nip
Diffstat (limited to '47.md')
-rw-r--r--47.md12
1 files changed, 5 insertions, 7 deletions
diff --git a/47.md b/47.md
index 983d2c9..a19230f 100644
--- a/47.md
+++ b/47.md
@@ -38,7 +38,7 @@ a plaintext string with the supported commands, space-separated, eg. `pay_invoic
38Both 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. 38Both 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.
39Optionally, 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. 39Optionally, 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
41The 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: 41The content of requests and responses is encrypted with [NIP04](04.md), and is a JSON-RPCish object with a semi-fixed structure:
42 42
43Request: 43Request:
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