At
|
If your mobile wallet supports payments to AMP invoices, the invoice needs to be scanned and optionally the amount needs to be specified. To pay an AMP invoice from the command line, you only need to execute `lncli payinvoice <amp invoice>` If the AMP invoice does not contain an amount, you can specify the amount you would like to pay with the `--amt` flag. |
it says to use lncli payinvoice <amp invoice> to pay an AMP invoice.
However, that results in
[lncli] rpc error: code = Unknown desc = the AMP flag (--amp or SendPaymentRequest.Amp) must be set to pay an AMP invoice
because the --amp flag is not included.
Also,
|
`lncli payinvoice --pay_req <the amp invoice created by the receiver> --amp-reuse` |
suggests using a --amp-reuse flag, but that is wrong and does not exist.
Also
|
`lncli payinvoice --pay_req <the amp invoice created by the receiver>` |
and
|
`lncli payinvoice --pay_req <the amp invoice created by the receiver> --pay_addr <the sha256 hash of a random number>` |
are missing the --amp flag as well.
Also, some places payinvoice is used and some places sendpayment is used on this page. Seems like mixing and matching those two causes a little confusion. It is also redundant to include --pay_req= with the payinvoice command since payinvoice is shorthand for sendpayment --pay_req=.
At
docs.lightning.engineering/lightning-network-tools/lnd/amp.md
Line 79 in 0ba7c3c
it says to use
lncli payinvoice <amp invoice>to pay an AMP invoice.However, that results in
because the
--ampflag is not included.Also,
docs.lightning.engineering/lightning-network-tools/lnd/amp.md
Line 63 in 0ba7c3c
suggests using a
--amp-reuseflag, but that is wrong and does not exist.Also
docs.lightning.engineering/lightning-network-tools/lnd/amp.md
Line 57 in 0ba7c3c
and
docs.lightning.engineering/lightning-network-tools/lnd/amp.md
Line 61 in 0ba7c3c
are missing the
--ampflag as well.Also, some places
payinvoiceis used and some placessendpaymentis used on this page. Seems like mixing and matching those two causes a little confusion. It is also redundant to include--pay_req=with thepayinvoicecommand sincepayinvoiceis shorthand forsendpayment --pay_req=.