|
NAMElightning-createinvoice - Low-level invoice creationSYNOPSIScreateinvoice invstring label preimageDESCRIPTIONThe createinvoice RPC command signs and saves an invoice into the database.The invstring parameter is of bolt11 form, but without the final signature appended. Minimal sanity checks are done. (Note: if experimental-offers is enabled, invstring can actually be an unsigned bolt12 invoice). The label must be a unique string or number (which is treated as a string, so "01" is different from "1"); it is never revealed to other nodes on the lightning network, but it can be used to query the status of this invoice. The preimage is the preimage to supply upon successful payment of the invoice. RETURN VALUE(Note: the return format is the same as lightning-listinvoices(7)).On success, an object is returned, containing:
On failure, an error is returned and no invoice is created. If the lightning process fails before responding, the caller should use lightning-listinvoices(7) to query whether this invoice was created or not. The following error codes may occur:
AUTHORRusty Russell <rusty@rustcorp.com.au> is mainly responsible.SEE ALSOlightning-invoice(7), lightning-listinvoices(7), lightning-delinvoice(7), lightning-getroute(7), lightning-sendpay(7), lightning-offer(7).RESOURCESMain web site: https://github.com/ElementsProject/lightning Visit the GSP FreeBSD Man Page Interface. |