mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
Turns out we didn't actually test this at all, and next commit does :( offer_status_in_db: 4 is invalid lightningd: FATAL SIGNAL 6 (version v0.10.0-459-g48fbd45-modded) 0x5608cd360855 send_backtrace common/daemon.c:39 0x5608cd3608ff crashdump common/daemon.c:52 0x7f9af1dae20f ??? ???:0 0x7f9af1dae18b ??? ???:0 0x7f9af1d8d858 ??? ???:0 0x5608cd30a47e fatal lightningd/log.c:819 0x5608cd3430c5 offer_status_in_db wallet/wallet.h:1424 0x5608cd34f1f3 wallet_offer_disable wallet/wallet.c:4494 0x5608cd33ae2e json_disableoffer lightningd/offer.c:256 0x5608cd3038fc command_exec lightningd/jsonrpc.c:643 Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
83 lines
2.3 KiB
Groff
Generated
83 lines
2.3 KiB
Groff
Generated
.TH "LIGHTNING-DISABLEOFFER" "7" "" "" "lightning-disableoffer"
|
|
.SH NAME
|
|
lightning-disableoffer - Command for removing an offer
|
|
.SH SYNOPSIS
|
|
|
|
\fB(WARNING: experimental-offers only)\fR
|
|
|
|
|
|
\fBdisableoffer\fR \fIoffer_id\fR
|
|
|
|
.SH DESCRIPTION
|
|
|
|
The \fBdisableoffer\fR RPC command disables an offer, so that no further
|
|
invoices will be given out (if made with \fBlightning-offer\fR(7)) or
|
|
invoices accepted (if made with \fBlightning-offerout\fR(7))\.
|
|
|
|
|
|
We currently don't support deletion of offers, so offers are not
|
|
forgotten entirely (there may be invoices which refer to this offer)\.
|
|
|
|
.SH EXAMPLE JSON REQUEST
|
|
.nf
|
|
.RS
|
|
{
|
|
"id": 82,
|
|
"method": "disableoffer",
|
|
"params": {
|
|
"offer_id": "713a16ccd4eb10438bdcfbc2c8276be301020dd9d489c530773ba64f3b33307d ",
|
|
}
|
|
}
|
|
.RE
|
|
|
|
.fi
|
|
.SH RETURN VALUE
|
|
|
|
Note: the returned object is the same format as \fBlistoffers\fR\.
|
|
|
|
|
|
On success, an object is returned, containing:
|
|
|
|
.RS
|
|
.IP \[bu]
|
|
\fBoffer_id\fR (hex): the merkle hash of the offer (always 64 characters)
|
|
.IP \[bu]
|
|
\fBactive\fR (boolean): Whether the offer can produce invoices/payments (always \fIfalse\fR)
|
|
.IP \[bu]
|
|
\fBsingle_use\fR (boolean): Whether the offer is disabled after first successful use
|
|
.IP \[bu]
|
|
\fBbolt12\fR (string): The bolt12 string representing this offer
|
|
.IP \[bu]
|
|
\fBbolt12_unsigned\fR (string): The bolt12 string representing this offer, without signature
|
|
.IP \[bu]
|
|
\fBused\fR (boolean): Whether the offer has had an invoice paid / payment made
|
|
.IP \[bu]
|
|
\fBlabel\fR (string, optional): The label provided when offer was created
|
|
|
|
.RE
|
|
.SH EXAMPLE JSON RESPONSE
|
|
.nf
|
|
.RS
|
|
{
|
|
"offer_id": "053a5c566fbea2681a5ff9c05a913da23e45b95d09ef5bd25d7d408f23da7084",
|
|
"active": false,
|
|
"single_use": false,
|
|
"bolt12": "lno1qgsqvgnwgcg35z6ee2h3yczraddm72xrfua9uve2rlrm9deu7xyfzrcgqvqcdgq2z9pk7enxv4jjqen0wgs8yatnw3ujz83qkc6rvp4j28rt3dtrn32zkvdy7efhnlrpr5rp5geqxs783wtlj550qs8czzku4nk3pqp6m593qxgunzuqcwkmgqkmp6ty0wyvjcqdguv3pnpukedwn6cr87m89t74h3auyaeg89xkvgzpac70z3m9rn5xzu28c",
|
|
"used": false
|
|
}
|
|
.RE
|
|
|
|
.fi
|
|
.SH AUTHOR
|
|
|
|
Rusty Russell \fI<rusty@rustcorp.com.au\fR> is mainly responsible\.
|
|
|
|
.SH SEE ALSO
|
|
|
|
\fBlightning-offer\fR(7), \fBlightning-offerout\fR(7), \fBlightning-listoffers\fR(7)\.
|
|
|
|
.SH RESOURCES
|
|
|
|
Main web site: \fIhttps://github.com/ElementsProject/lightning\fR
|
|
|
|
\" SHA256STAMP:e905cb7b8acef73c3ca6bbd41d861234b006aa28185c46b6ba1419c4a0065c3a
|