LIGHTNING-PREAPPROVEINVOICE(7) LIGHTNING-PREAPPROVEINVOICE(7) NAME preapproveinvoice -- Ask the HSM to preapprove an invoice (low-level) SYNOPSIS preapproveinvoice bolt11 DESCRIPTION Command added in v23.02. The preapproveinvoice RPC command submits the bolt11 invoice to the HSM to check that it is approved for payment. Generally the preapproveinvoice request does not need to be made explic- itly, it is automatically generated as part of a pay request. By default, the HSM will approve all preapproveinvoice requests. If a remote signer is being used it might decline an preapproveinvoice re- quest because it would exceed velocity controls, is not covered by al- lowlist controls, was declined manually, or other reasons. If a remote signer declines a preapproveinvoice request a subsequent at- tempt to pay the invoice anyway will fail; the signer will refuse to sign the commitment. * bolt11 (string): Bolt11 invoice to submit to the HSM to check. (added v23.02) RETURN VALUE On success, an empty object is returned. AUTHOR Ken Sedgwick ken@bonsai.com is mainly responsible. SEE ALSO lightning-xpay(7) RESOURCES Main web site: https://github.com/ElementsProject/lightning EXAMPLES Example 1: Request: $ lightning-cli preapproveinvoice -k "bolt11"="lnbcrt100n1pnt2bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000" { "id": "example:preapproveinvoice#1", "method": "preapproveinvoice", "params": { "bolt11": "lnbcrt100n1pnt2bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000bolt11invl020400000000" } } Response: {} Example 2: Request: $ lightning-cli preapproveinvoice "lnbcrt100n1pnt2bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000" { "id": "example:preapproveinvoice#2", "method": "preapproveinvoice", "params": [ "lnbcrt100n1pnt2bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000bolt11invl020500000000" ] } Response: {} Core Lightning v26.06.1 LIGHTNING-PREAPPROVEINVOICE(7)
NAME | SYNOPSIS | DESCRIPTION | RETURN VALUE | AUTHOR | SEE ALSO | RESOURCES | EXAMPLES
Want to link to this manual page? Use this URL:
<https://man.FreeBSD.org/cgi/man.cgi?query=lightning-preapproveinvoice&sektion=7&manpath=FreeBSD+Ports+15.1.quarterly>