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:
authorkehiy <kehiiiiya@gmail.com>2024-09-03 20:41:31 +0330
committerkehiy <kehiiiiya@gmail.com>2024-09-03 20:41:31 +0330
commite6552476aa2e5ca7256be572a9aa226ec8a022ee (patch)
tree46f14902bd2bfb85e5f3369ece456c46b697b1a2 /47.md
parentb4a2561df7325b8624bc5ffad154ec946ade2f1e (diff)
format(all): json formatting
Diffstat (limited to '47.md')
-rw-r--r--47.md10
1 files changed, 4 insertions, 6 deletions
diff --git a/47.md b/47.md
index e4e432c..a19230f 100644
--- a/47.md
+++ b/47.md
@@ -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