Skip to main content

request_invoice

Function request_invoice 

Source
pub async fn request_invoice(
    http: Client,
    signer: Signer,
    order: ZapOrder,
) -> Result<Invoice, ZapError>
Expand description

Ask a Lightning address for the invoice of order, with signer signing for an account that zaps.

An address that doesn’t do zaps is asked for a plain invoice instead: the money arrives all the same, and the result says which it is.