You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: doc/lightning-invoice.7.md
+16-14
Original file line number
Diff line number
Diff line change
@@ -71,13 +71,23 @@ Otherwise, it's set to the parameter **cltv-final**.
71
71
RETURN VALUE
72
72
------------
73
73
74
-
On success, a hash is returned as *payment\_hash* to be given to the
75
-
payer, and the *expiry\_time* as a UNIX timestamp. It also returns a
76
-
BOLT11 invoice as *bolt11* to be given to the payer.
74
+
[comment]: #(GENERATE-FROM-SCHEMA-START)
75
+
On success, an object is returned, containing:
76
+
-**bolt11** (string): the bolt11 string
77
+
-**payment_hash** (hex): the hash of the *payment_preimage* which will prove payment (always 64 characters)
78
+
-**expires_at** (u64): UNIX timestamp of when invoice expires
79
+
80
+
The following warnings may also be returned:
81
+
-**warning_capacity**: even using all possible channels, there's not enough incoming capacity to pay this invoice.
82
+
-**warning_offline**: there would be enough incoming capacity, but some channels are offline, so there isn't.
83
+
-**warning_deadends**: there would be enough incoming capacity, but some channels are dead-ends (no other public channels from those peers), so there isn't.
84
+
-**warning_private_unused**: there would be enough incoming capacity, but some channels are unannounced and *exposeprivatechannels* is *false*, so there isn't.
85
+
-**warning_mpp**: there is sufficient capacity, but not in a single channel, so the payer will have to use multi-part payments.
86
+
[comment]: #(GENERATE-FROM-SCHEMA-END)
77
87
78
88
On failure, an error is returned and no invoice is created. If the
79
89
lightning process fails before responding, the caller should use
80
-
lightning-listinvoice(7) to query whether this invoice was created or
90
+
lightning-listinvoices(7) to query whether this invoice was created or
81
91
not.
82
92
83
93
The following error codes may occur:
@@ -86,14 +96,6 @@ The following error codes may occur:
86
96
- 901: An invoice with the given *preimage* already exists.
87
97
- 902: None of the specified *exposeprivatechannels* were usable.
88
98
89
-
One of the following warnings may occur (on success):
90
-
-*warning_capacity*: even using all possible channels, there's not enough incoming capacity to pay this invoice.
91
-
-*warning_offline*: there would be enough incoming capacity, but some channels are offline, so there isn't.
92
-
-*warning_deadends*: there would be enough incoming capacity, but some channels are dead-ends (no other public channels from those peers), so there isn't.
93
-
-*warning_private_unused*: there would be enough incoming capacity, but some channels are unannounced and *exposeprivatechannels* is *false*, so there isn't.
94
-
-*warning_mpp* if there is sufficient capacity, but not in a single channel,
95
-
so the payer will have to use multi-part payments.
96
-
97
99
AUTHOR
98
100
------
99
101
@@ -102,11 +104,11 @@ Rusty Russell <<[email protected]>> is mainly responsible.
0 commit comments