lightning-disableoffer

lightning-disableoffer -- Command for removing an offer

SYNOPSIS

disableoffer offer_id

DESCRIPTION

The disableoffer RPC command disables an offer, so that no further invoices will be given out.

We currently don't support deletion of offers, so offers are not forgotten entirely (there may be invoices which refer to this offer).

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

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.
  • active (boolean) (always false): 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.

AUTHOR

Rusty Russell <[email protected]> is mainly responsible.

SEE ALSO

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

RESOURCES

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

EXAMPLES

Example 1:

Request:

lightning-cli disableoffer -k "offer_id"="b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24"
{
  "id": "example:disableoffer#1",
  "method": "disableoffer",
  "params": {
    "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24"
  }
}

Response:

{
  "offer_id": "b791f88cebf775853112c30828e116487f4d6c252d669372532b468bc7de8a24",
  "active": false,
  "single_use": false,
  "bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqv0gfqq2zp8kven9wgs8gmeqg35hxctzd3j3vggz953rvg9rtxj8lalh43z8epwydjfrmffn3y3p5qz5cywpu09rr4vs",
  "used": false
}

Core Lightning (previously c-lightning) is a lightweight, highly customizable and standard compliant implementation of the Lightning Network protocol.

© 2023 Core Lightning
All rights reserved.

Discussion Forum

The official Core Lightning forum is hosted at discuss.corelightning.org

BuildonL2 Community

The official BuildOnL2 community lives at community.corelightning.org. Join us and build the future of bitcoin on lightning.

Mailing List

For general discussions about CLN implementation, use [email protected]. For the Lightning Network, use [email protected]

Telegram

Community-driven telegram group where most of the node operators hang out. Go to https://t.me/lightningd to join.

Discord

Community-driven discord server where the devs flock together. Go to https://discord.gg/w27fMFESMN to join.

Internet Relay Chat

Don't hesitate to reach out to us on IRC at #lightning-dev @ libera.chat, #c-lightning @ libera.chat.