From aea8184e582bf7d75e07749f12f0cef10672d30c Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Mon, 6 Mar 2023 14:09:12 +1030 Subject: [PATCH] doc: fix modern usage of sendinvoice (changed in v22.11) Signed-off-by: Rusty Russell --- doc/lightning-sendinvoice.7.md | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/doc/lightning-sendinvoice.7.md b/doc/lightning-sendinvoice.7.md index 0258b92ae..0f06cae7e 100644 --- a/doc/lightning-sendinvoice.7.md +++ b/doc/lightning-sendinvoice.7.md @@ -6,20 +6,19 @@ SYNOPSIS **(WARNING: experimental-offers only)** -**sendinvoice** *offer* *label* [*amount\_msat*] [*timeout*] [*quantity*] +**sendinvoice** *invreq* *label* [*amount\_msat*] [*timeout*] [*quantity*] DESCRIPTION ----------- The **sendinvoice** RPC command creates and sends an invoice to the -issuer of an *offer* for it to pay: the offer must contain -*send\_invoice*; see lightning-fetchinvoice(7). +issuer of an *invoice\_request* for it to pay: lightning-invoicerequest(7). If **fetchinvoice-noconnect** is not specified in the configuation, it will connect to the destination in the (currently common!) case where it cannot find a route which supports `option_onion_messages`. -*offer* is the bolt12 offer string beginning with "lno1". +*invreq* is the bolt12 invoice\_request string beginning with "lnr1". *label* is the unique label to use for this invoice. @@ -33,7 +32,7 @@ invoice or return an error, default 90 seconds. This will also be the timeout on the invoice that is sent. *quantity* is optional: it is required if the *offer* specifies -*quantity\_min* or *quantity\_max*, otherwise it is not allowed. +*quantity\_max*, otherwise it is not allowed. RETURN VALUE ------------