mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-22 16:44:20 +01:00
pay/sendpay: also store description in case bolt11 uses description_hash.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -24,6 +24,7 @@ On success, an object containing **pays** is returned. It is an array of object
|
||||
- **destination** (pubkey, optional): the final destination of the payment if known
|
||||
- **label** (string, optional): the label, if given to sendpay
|
||||
- **bolt11** (string, optional): the bolt11 string (if pay supplied one)
|
||||
- **description** (string, optional): the description matching the bolt11 description hash (if pay supplied one)
|
||||
- **bolt12** (string, optional): the bolt12 string (if supplied for pay: **experimental-offers** only).
|
||||
|
||||
If **status** is "pending" or "complete":
|
||||
@@ -56,4 +57,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:6ffbb1273de04f356cf79dab9a988ab030eee3317cb22e10d12d1c672249fc67)
|
||||
[comment]: # ( SHA256STAMP:3c158259410ff8eb81669e26eca9ee53017002d739f89e7f0e2fd8e61edb8a14)
|
||||
|
||||
@@ -34,6 +34,7 @@ On success, an object containing **payments** is returned. It is an array of ob
|
||||
- **destination** (pubkey, optional): the final destination of the payment if known
|
||||
- **label** (string, optional): the label, if given to sendpay
|
||||
- **bolt11** (string, optional): the bolt11 string (if pay supplied one)
|
||||
- **description** (string, optional): the description matching the bolt11 description hash (if pay supplied one)
|
||||
- **bolt12** (string, optional): the bolt12 string (if supplied for pay: **experimental-offers** only).
|
||||
|
||||
If **status** is "complete":
|
||||
@@ -60,4 +61,4 @@ RESOURCES
|
||||
|
||||
Main web site: <https://github.com/ElementsProject/lightning>
|
||||
|
||||
[comment]: # ( SHA256STAMP:b03c2f306bafb1919f0933ebc695657bd691591484ddcb39b1e8706335593cd2)
|
||||
[comment]: # ( SHA256STAMP:eaa0b4c6309d45bc2a72baf44288f1faa75d7f6ff2e8bf6d03be53747fe82c84)
|
||||
|
||||
@@ -5,7 +5,8 @@ SYNOPSIS
|
||||
--------
|
||||
|
||||
**sendpay** *route* *payment\_hash* [*label*] [*msatoshi*]
|
||||
[*bolt11*] [*payment_secret*] [*partid*] [*localofferid*] [*groupid*] [*payment_metadata*]
|
||||
[*bolt11*] [*payment_secret*] [*partid*] [*localofferid*] [*groupid*]
|
||||
[*payment_metadata*] [*description*]
|
||||
|
||||
DESCRIPTION
|
||||
-----------
|
||||
|
||||
@@ -48,6 +48,10 @@
|
||||
"type": "string",
|
||||
"description": "the bolt11 string (if pay supplied one)"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "the description matching the bolt11 description hash (if pay supplied one)"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "the bolt12 string (if supplied for pay: **experimental-offers** only)."
|
||||
@@ -78,6 +82,7 @@
|
||||
"created_at": {},
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"description": {},
|
||||
"bolt12": {},
|
||||
"preimage": {},
|
||||
"number_of_parts": {},
|
||||
@@ -115,6 +120,7 @@
|
||||
"created_at": {},
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"description": {},
|
||||
"bolt12": {},
|
||||
"amount_msat": {},
|
||||
"amount_sent_msat": {},
|
||||
@@ -152,6 +158,7 @@
|
||||
"created_at": {},
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"description": {},
|
||||
"bolt12": {},
|
||||
"amount_sent_msat": {},
|
||||
"erroronion": {
|
||||
|
||||
@@ -72,6 +72,10 @@
|
||||
"type": "string",
|
||||
"description": "the bolt11 string (if pay supplied one)"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"description": "the description matching the bolt11 description hash (if pay supplied one)"
|
||||
},
|
||||
"bolt12": {
|
||||
"type": "string",
|
||||
"description": "the bolt12 string (if supplied for pay: **experimental-offers** only)."
|
||||
@@ -108,6 +112,7 @@
|
||||
"amount_sent_msat": {},
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"description": {},
|
||||
"bolt12": {},
|
||||
"payment_preimage": {
|
||||
"type": "secret",
|
||||
@@ -146,6 +151,7 @@
|
||||
"amount_sent_msat": {},
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"description": {},
|
||||
"bolt12": {},
|
||||
"erroronion": {
|
||||
"type": "hex",
|
||||
@@ -182,6 +188,7 @@
|
||||
"amount_sent_msat": {},
|
||||
"label": {},
|
||||
"bolt11": {},
|
||||
"description": {},
|
||||
"bolt12": {}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user