Hierarchy

  • BladeConnector

Implements

Constructors

Properties

strategy: BaseConnectorStrategy

Accessors

Methods

  • Triggers the process of pairing with the Blade Wallet. If there is the Blade Wallet extension, wallet user will be asked to select accounts to pair. If there is no extension, QR code modal will be shown.

    Parameters

    • Optional params: SessionParams

      Params to create a session with. Optional for testing

    Returns Promise<string[]>

  • Parameters

    • Optional skipWake: boolean

    Returns Promise<boolean>

  • Executes a given callback when the session has been disconnected.

    Parameters

    • callback: (() => void)

      Callback to execute

        • (): void
        • Returns void

    Returns void

  • Executes a given callback when the session has expired.

    Parameters

    • callback: (() => void)

      Callback to execute

        • (): void
        • Returns void

    Returns void

  • Executes a given callback when the wallet is locked.

    Parameters

    • callback: (() => void)

      Callback to execute

        • (): void
        • Returns void

    Returns Promise<void>

  • Executes a given callback when the wallet is unlocked.

    Parameters

    • callback: (() => void)

      Callback to execute

        • (): void
        • Returns void

    Returns Promise<void>

  • Private

    Initializes connector with the underlying strategy with a given preferredStrategy.

    Parameters

    • preferredStrategy: ConnectorStrategy

      preferred strategy to use

    • Optional meta: Metadata

      dApp metadata to pass to Wallet Connect

    • Optional projectId: string

      dApp WC project ID, default one is a Blade Wallet project ID

    Returns Promise<BladeConnector>

Generated using TypeDoc