lightning-signinvoice – Low-level invoice signing¶
The signinvoice RPC command signs an invoice. Unlike createinvoice it does not save the invoice into the database and thus does not require the preimage.
The invstring parameter is of bolt11 form, but the final signature is ignored. Minimal sanity checks are done.
On success, an object is returned, containing:
- bolt11 (string): the bolt11 string
On failure, an error is returned.
The following error codes may occur:
- -1: Catchall nonspecific error.
lightning-createinvoice(7), lightning-invoice(7), lightning-listinvoices(7), lightning-delinvoice(7), lightning-getroute(7), lightning-sendpay(7), lightning-offer(7).
Main web site: https://github.com/ElementsProject/lightning