We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
amount_msats
1 parent 560835c commit 05fc9fdCopy full SHA for 05fc9fd
lightning/src/offers/invoice_request.rs
@@ -270,6 +270,11 @@ macro_rules! invoice_request_builder_methods { (
270
/// Sets the [`InvoiceRequest::amount_msats`] for paying an invoice. Errors if `amount_msats` is
271
/// not at least the expected invoice amount (i.e., [`Offer::amount`] times [`quantity`]).
272
///
273
+ /// When the [`Offer`] specifies a currency, this method allows setting the `amount_msats` in the
274
+ /// `InvoiceRequest`. The issuer of the offer will validate this amount and must set a matching
275
+ /// amount in the final invoice. If the issuer disagrees with the specfified amount, the invoice
276
+ /// request will be rejected.
277
+ ///
278
/// Successive calls to this method will override the previous setting.
279
280
/// [`quantity`]: Self::quantity
0 commit comments