Class default

Hierarchy

  • default

Constructors

Properties

_jwt: string = ''
manager: Manager
middleware: Middleware

Accessors

  • get jwt(): string
  • Returns string

  • set jwt(newJwt: string): void
  • Parameters

    • newJwt: string

    Returns void

  • set onAuthFailed(callback: ((url: string) => void)): void
  • Parameters

    • callback: ((url: string) => void)
        • (url: string): void
        • Parameters

          • url: string

          Returns void

    Returns void

Methods

  • Check if the node is online, and what parts are online

    Returns Promise<{ lightning: { operational: boolean; unlocked: boolean }; manager: boolean; middleware: boolean; node: boolean }>

  • Login to the node.

    Parameters

    • password: string

      The users password

    • totpToken: string

    Returns Promise<void>

  • Refresh the stored JWT

    Returns Promise<void>

  • Try to discover a node on the network

    Returns

    The discovered node or false if none found

    Returns Promise<string | false>

Generated using TypeDoc