pub struct PayLnurlRequest {
pub lnurl: Option<String>,
pub pay_request: Option<LnurlPayRequest>,
pub amount: Amount,
pub message: Option<String>,
pub personal_note: Option<String>,
}Expand description
A request to pay to an LNURL-pay endpoint.
Fields§
§lnurl: Option<String>The LNURL or Lightning Address to pay to.
Exactly one of lnurl or pay_request should be provided.
pay_request: Option<LnurlPayRequest>The LNURL pay request to use.
Exactly one of lnurl or pay_request should be provided.
amount: AmountThe amount to pay. This value must satisfy the minimum and maximum limits set by the LNURL endpoint.
message: Option<String>An optional message to include in the payment, visible to the recipient.
Will only be sent if the LNURL endpoint supports it, and will be truncated to the LNURL endpoint’s specified length limits if needed.
See LnurlPayRequest::comment_allowed for more insight.
An LnurlPayRequest can be constructed from a string via
analyze.
personal_note: Option<String>An optional personal note for this payment. The receiver will not see this note. If provided, it must be non-empty and no longer than 200 chars / 512 UTF-8 bytes.