@getalby/sdk
    Preparing search index...

    Class ReceiveInvoice

    A lightning invoice to be received by your wallet, along with utility functions, such as checking if the invoice was paid and acting upon it.

    Index

    Constructors

    Properties

    invoice: Invoice
    transaction: Nip47Transaction

    Methods

    • Setup an action that happens if the invoice is not paid after a certain amount of time.

      Parameters

      • seconds: number

        the number of seconds to wait for a payment

      • callback: () => void

        this method will be called once the timeout is elapsed.

      Returns ReceiveInvoice

      the current instance for method