Module invoice_utils
Expand description
Convenient utilities to create an invoice.
Functions§
- create_
invoice_ from_ channelmanager Deprecated Utility to construct an invoice. Generally, unless you want to do something like a custom cltv_expiry, this is what you should be using to create an invoice. The reason being, this method stores the invoice’s payment secret and preimage inChannelManager
, so (a) the user doesn’t have to store preimage/payment secret information and (b)ChannelManager
can verify that the payment secret is valid when the invoice is paid. - Utility to construct an invoice. Generally, unless you want to do something like a custom cltv_expiry, this is what you should be using to create an invoice. The reason being, this method stores the invoice’s payment secret and preimage in
ChannelManager
, so (a) the user doesn’t have to store preimage/payment secret information and (b)ChannelManager
can verify that the payment secret is valid when the invoice is paid. Use this variant if you want to pass thedescription_hash
to the invoice. - Utility to create an invoice that can be paid to one of multiple nodes, or a “phantom invoice.” See
PhantomKeysManager
for more information on phantom node payments. - Utility to create an invoice that can be paid to one of multiple nodes, or a “phantom invoice.” See
PhantomKeysManager
for more information on phantom node payments.