GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
LIGHTNING-DISABLEINVOICEREQUEST(7) LIGHTNING-DISABLEINVOICEREQUEST(7)

lightning-disableinvoicerequest -- Command for removing an invoice request

disableinvoicerequest invreq_id

Command added in v22.11.

The disableinvoicerequest RPC command disables an invoice_request, so that no further invoices will be accepted (and thus, no further payments made)..

We currently don't support deletion of invoice_requests, so they are not forgotten entirely (there may be payments which refer to this invoice_request).

invreq_id (string): A specific invoice can be disabled by providing the invreq_id, which is presented by lightning-invoicerequest(7).

Note: the returned object is the same format as listinvoicerequests. On success, an object is returned, containing:

  • invreq_id (hash): The SHA256 hash of all invoice_request fields less than 160.

  • active (boolean) (always false): Whether the invoice_request is currently active.

  • single_use (boolean): Whether the invoice_request will become inactive after we pay an invoice for it.

  • bolt12 (string): The bolt12 string starting with lnr.

  • used (boolean): Whether the invoice_request has already been used.

  • label (string, optional): The label provided when creating the invoice_request.

Rusty Russell <rusty@rustcorp.com.au> is mainly responsible.

lightning-invoicerequest(7), lightning-listinvoicerequests(7)

Main web site: https://github.com/ElementsProject/lightning

Example 1:

Request:

$ lightning-cli disableinvoicerequest -k "invreq_id"="invreqid02020202020202020202020202020202020202020202020202020202"

{

"id": "example:disableinvoicerequest#1",
"method": "disableinvoicerequest",
"params": {
"invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202"
} }

Response:

{

"invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202",
"active": false,
"single_use": true,
"bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000",
"used": false }
Core Lightning v25.02.2

Search for    or go to Top of page |  Section 7 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.