LIGHTNING-LISTINVOICEREQUESTS(7)
β¨ NAME β¨
okay bestie, this is lightning-listinvoicerequests(7) β the manual page for the listinvoicerequests command, aka the command for querying invoice_request status. It's giving "I need to know what's up with my invoice requests" and honestly? Same. π
π°οΈ SYNOPSIS π°οΈ
listinvoicerequests [invreq_id] [active_only]
π DESCRIPTION π
πΈ Command added in v22.11.
The listinvoicerequests RPC command gets the status of a specific invoice_request, if it exists, or the status of all invoice_requests if given no argument. iconic, tbh.
invreq_id(string, optional) β a specific invoice can be queried by providing theinvreq_id, which is presented bylightning-invoicerequest(7), or can be calculated from abolt12invoice. iykykactive_only(boolean, optional) β if it isTruethen only active invoice requests are returned. The default isFalse. default check: noted β
π RETURN VALUE π
On success, an object containing invoicerequests is returned. It is an array of objects, where each object contains:
invreq_id(hash) β The SHA256 hash of allinvoice_requestfields less than160.active(boolean) β Whether theinvoice_requestis currently active.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.
like, every field is right there β no mystery, no cap π
π AUTHOR π
Rusty Russell rusty@rustcorp.com.au is mainly responsible. main character credit where it's due π«Ά
π SEE ALSO π
lightning-invoicerequests(7)lightning-disableinvoicerequest(7)
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning
π§ͺ EXAMPLES π§ͺ
π Example 1 π
Request:
$ lightning-cli listinvoicerequests "invreqid03030303030303030303030303030303030303030303030303030303"
{
"id": "example:listinvoicerequests#1",
"method": "listinvoicerequests",
"params": [
"invreqid03030303030303030303030303030303030303030303030303030303"
]
}
Response:
{
"invoicerequests": [
{
"invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202",
"active": false,
"single_use": true,
"bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000",
"used": false
}
]
}
π Example 2 π
Request:
$ lightning-cli listinvoicerequests
{
"id": "example:listinvoicerequests#2",
"method": "listinvoicerequests",
"params": {}
}
Response:
{
"invoicerequests": [
{
"invreq_id": "invreqid02020202020202020202020202020202020202020202020202020202",
"active": false,
"single_use": true,
"bolt12": "lno1qgsq000bolt240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000240002400024000",
"used": false
},
{
"invreq_id": "invreqid01010101010101010101010101010101010101010101010101010101",
"active": false,
"single_use": true,
"bolt12": "lno1qgsq000bolt210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000210002100021000",
"used": true
}
]
}
okay that's the whole vibe π this page ships with Core Lightning v26.06.9 and it's the LIGHTNING-LISTINVOICEREQUESTS(7) manual β go query those invoice requests, bestie! π«Άβ¨
π¦ 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