LIGHTNING-SIGNINVOICE(7)
πΈ NAME πΈ
okay so this page is all about lightning-signinvoice(7) β literally low-level invoice signing π
it's the deep-lore manpage bestie, and it's here to explain signinvoice in full β¨
π¦ SYNOPSIS π¦
signinvoice invstring
π DESCRIPTION π
so this command got added in v23.02 β vintage-ish but still serving π
the signinvoice RPC command signs an invoice. and here's the part where it's not like createinvoice, bestie: it does not save the invoice into the database, and because of that it does not require the preimage. no preimage, no storage, no problem π
invstring(string) β Bolt11 form, but the final signature is ignored. and lowkey only minimal sanity checks are done on it, so don't expect a full vibe check π
β RETURN VALUE β
when it works? you get an object back, containing:
bolt11(string) β The bolt11 string. that's it, that's the whole payload π«Ά
π ERRORS π
these error codes may show up:
-1β Catchall nonspecific error. yep, the classic "something happened, don't ask me what" π
π AUTHOR π
Carl Dong contact@carldong.me is mainly responsible. main character energy fr fr π
π₯ SEE ALSO π₯
lightning-createinvoice(7)lightning-invoice(7)lightning-listinvoices(7)lightning-delinvoice(7)lightning-getroute(7)lightning-sendpay(7)lightning-offer(7)
π RESOURCES π
Main web site: https://github.com/ElementsProject/lightning β go be nosy, iykyk π¦
π EXAMPLES π
β¨ Example 1 β¨
Request:
$ lightning-cli signinvoice -k "invstring"="lnbcrt100n1pnt2bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000"
{
"id": "example:signinvoice#1",
"method": "signinvoice",
"params": {
"invstring": "lnbcrt100n1pnt2bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000bolt11invl010200000000"
}
}
Response:
{
"bolt11": "lnbcrt100n1pnt2bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000bolt11invl060600000000"
}
π Example 2 π
Request:
$ lightning-cli signinvoice "lnbcrt100n1pnt2bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000"
{
"id": "example:signinvoice#2",
"method": "signinvoice",
"params": [
"lnbcrt100n1pnt2bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000bolt11invl020600000000"
]
}
Response:
{
"bolt11": "lnbcrt100n1pnt2bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000bolt11invl060700000000"
}
ngl those bolt11 strings are long long, but that's the whole point β sign it, hand it back, no database drama π
and that's the page!! this lil fairy godmother of a manpage is from Core Lightning v26.06.9, LIGHTNING-SIGNINVOICE(7), mwah π slay, go sign some invoices π§ββοΈπ
π¦ 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