@getalby/sdk
    Preparing search index...

    Class NWCClient

    Index

    Constructors

    Properties

    lud16: undefined | string
    options: NWCOptions
    relay: Relay
    relayUrl: string
    secret: undefined | string
    walletPubkey: string

    Accessors

    Methods

    • Returns Promise<
          {
              capabilities: Nip47Capability[];
              encryptions: string[];
              notifications: (
                  "payment_received"
                  | "payment_sent"
                  | "hold_invoice_accepted"
              )[];
          },
      >

    • Parameters

      • onNotification: (notification: Nip47Notification) => void
      • OptionalnotificationTypes: ("payment_received" | "payment_sent" | "hold_invoice_accepted")[]

      Returns Promise<() => void>