LIGHTNING-ENABLEOFFER(7)
π LIGHTNING-ENABLEOFFER(7)
ok so bestie, welcome to the glow-up era of this lil page β it's the manual for lightning-enableoffer, and yes the name is a mouthful, we're coping π«Ά
β¨ NAME β¨
enableoffer β the command that un-disables your offer, i.e. the "jk, come back π₯Ί" of offers.
π SYNOPSIS π
enableoffer offer_id
πΈ DESCRIPTION πΈ
okay so first thing: this command was added in v24.08. mark your calendars, she's new-ish π
The enableoffer RPC command enables an offer, after it has been disabled. That's it. That's the whole vibe. You had an offer, you hit the off switch, now you want it back on β this is the button.
offer_id(hash) β the id we use to identify this offer. it's the little name tag your offer wears so we know which one you mean π
π¦ RETURN VALUE π¦
note: the returned object is the same format as listoffers. On success, an object is returned, containing:
offer_id(hash) β the merkle hash of the offer. very demure, very merkle.active(boolean) (always true) β whether the offer can produce invoices/payments. and bestie, it's alwaystruehere, that's literally the point of the command π₯³single_use(boolean) β whether the offer is disabled after first successful use.force_paths(boolean) β True iffronting_nodes(or the payment-fronting-node configuration entry) is set: implies any invoice issued for this offer must use a subset of the same blinded paths. (added v26.04)bolt12(string) β the bolt12 string representing this offer. the iconic long string, she's back β¨used(boolean) β whether the offer has had an invoice paid / payment made.description(string, optional) β the user-specified bolt 12 description. (added v26.04)label(string, optional) β the label provided when offer was created.
π ERRORS π
on failure, one of the following error codes may be returned β read these, they're your group chat receipts:
-32602β Error in given parameters. check ur args bestie π1006β offer already enabled. she's already up, no need to do all that π
π AUTHOR π
Rusty Russell rusty@rustcorp.com.au is mainly responsible. (the main character, tbh π₯)
π SEE ALSO π
lightning-offer(7), lightning-disableoffer(7), lightning-listoffers(7)
π§ RESOURCES π§
Main web site: https://github.com/ElementsProject/lightning
β EXAMPLES β
Example 1:
Request:
$ lightning-cli enableoffer -k "offer_id"="offeridl23000002300000230000023000002300000230000023000002300000"
{
"id": "example:enableoffer#1",
"method": "enableoffer",
"params": {
"offer_id": "offeridl23000002300000230000023000002300000230000023000002300000"
}
}
Response:
{
"offer_id": "offeridl23000002300000230000023000002300000230000002300000",
"active": true,
"single_use": false,
"bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000",
"description": "Movie ticket",
"used": false
}
aaand that's the whole page, bestie π ok bye, this was LIGHTNING-ENABLEOFFER(7) from Core Lightning v26.06.9 β mwah, go enable some offers, ily ππ¦π
π¦ 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