LIGHTNING-DISABLEINVOICEREQUEST(7)
๐ LIGHTNING-DISABLEINVOICEREQUEST(7) โ the manual page, but make it group chat
okay so bestie, this is the manual page for lightning-disableinvoicerequest (that's the manual name, iykyk) and it's literally about putting an invoice request to sleep ๐ดโจ
โจ NAME โจ
disableinvoicerequest โ the command for removing an invoice request ๐
๐ฆ SYNOPSIS ๐ฆ
disableinvoicerequest invreq_id
๐ DESCRIPTION ๐
So this command was added in v22.11 โ vintage, iconic, periodt. โจ
The disableinvoicerequest RPC command disables an invoice_request, so that no further invoices will be accepted (and thus, no further payments made). it's giving "we're closed, go home" energy ๐
real talk though: we currently don't support deletion ofinvoice_requests, so they are not forgotten entirely (there may be payments which refer to thisinvoice_request). no cap, they stick around. ๐
invreq_id(string): you can disable one specific invoice by providing theinvreq_id, which is presented bylightning-invoicerequest(7). that's your golden ticket ๐๏ธ
๐ RETURN VALUE ๐
Note: the returned object is the same format as listinvoicerequests. On success, an object is returned, containing:
invreq_id(hash): the SHA256 hash of allinvoice_requestfields less than 160. math girlie behaviour fr fr ๐งฎactive(boolean) (alwaysfalse): whether theinvoice_requestis currently active. it's alwaysfalsehere โ that's literally the whole point bestie ๐ญsingle_use(boolean): whether theinvoice_requestwill become inactive after we pay an invoice for it.bolt12(string): the bolt12 string starting withlnr. ๐ฆused(boolean): whether theinvoice_requesthas already been used.label(string, optional): the label provided when creating theinvoice_request. ๐ท๏ธ
๐ธ AUTHOR ๐ธ
Rusty Russell rusty@rustcorp.com.au is mainly responsible. king behaviour, honestly ๐๐ซถ
๐ SEE ALSO ๐
โญ RESOURCES โญ
Main web site: https://github.com/ElementsProject/lightning ๐ฅ
๐ EXAMPLES ๐
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": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000",
"used": false
}
see how active came back false? that's the slay. that's the whole vibe check passing ๐
โจ
and that's a wrap, bestie! this page is from Core Lightning v26.06.9, the LIGHTNING-DISABLEINVOICEREQUEST(7) manual โ go disable some invoice requests, drink water, and stan Rusty ๐๐ง
๐ฆ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms