Applesauce
    Preparing search index...

    Interface Bolt11DepositOptions

    Options for depositing into a mint over bolt11 (a lightning invoice)

    interface Bolt11DepositOptions {
        amount: number;
        description?: string;
        method?: "bolt11";
        mint: string;
        onQuote?: (quote: MintQuoteBolt11Response) => void;
        signal?: AbortSignal;
        timeoutMs?: number;
    }
    Index

    Properties

    amount: number

    The amount to deposit in sats

    description?: string

    An optional description for the generated lightning invoice

    method?: "bolt11"

    The payment method (defaults to "bolt11")

    mint: string

    The mint url to deposit into

    onQuote?: (quote: MintQuoteBolt11Response) => void

    Called with the mint quote so the caller can display the lightning invoice to pay

    signal?: AbortSignal

    Aborts waiting for the quote to be paid

    timeoutMs?: number

    Rejects if the quote is not paid within this many milliseconds