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-ENABLEOFFER(7) LIGHTNING-ENABLEOFFER(7)

lightning-enableoffer -- Command for re-enabling an offer

enableoffer offer_id

The enableoffer RPC command enables an offer, after it has been disabled.

offer_id (hash): The id we use to identify this offer.

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.

  • active (boolean) (always true): Whether the offer can produce invoices/payments.

  • single_use (boolean): Whether the offer is disabled after first successful use.

  • bolt12 (string): The bolt12 string representing this offer.

  • used (boolean): Whether the offer has had an invoice paid / payment made.

  • label (string, optional): The label provided when offer was created.

On failure, one of the following error codes may be returned:

  • -32602: Error in given parameters.

  • 1006: offer already enabled.

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

lightning-offer(7), lightning-disableoffer(7), lightning-listoffers(7)

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

Example 1:

Request:

$ lightning-cli enableoffer -k "offer_id"="offeridl23000002300000230000023000002300000230000023000002300000"

{

"id": "example:enableoffer#1",
"method": "enableoffer",
"params": {
"offer_id": "offeridl23000002300000230000023000002300000230000023000002300000"
} }

Response:

{

"offer_id": "offeridl23000002300000230000023000002300000230000023000002300000",
"active": true,
"single_use": false,
"bolt12": "lno1qgsq000bolt230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000230002300023000",
"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.