Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Connector
    • WalletConnect

Index

Constructors

Properties

Methods

Constructors

constructor

  • new WalletConnect(actions: Actions, options: IWCEthRpcConnectionOptions, connectEagerly?: boolean, treatModalCloseAsError?: boolean): WalletConnect
  • Parameters

    • actions: Actions
    • options: IWCEthRpcConnectionOptions

      Options to pass to @walletconnect/ethereum-provider

    • Default value connectEagerly: boolean = true

      A flag indicating whether connection should be initiated when the class is constructed.

    • Default value treatModalCloseAsError: boolean = true

    Returns WalletConnect

Properties

Protected Readonly actions

actions: Actions

provider

provider: MockWalletConnectProvider | undefined

{@inheritdoc Connector.provider}

Methods

activate

  • activate(desiredChainId?: undefined | number): Promise<void>
  • Initiates a connection.

    Parameters

    • Optional desiredChainId: undefined | number

      If defined, indicates the desired chain to connect to. If the user is already connected to this chain, no additional steps will be taken. Otherwise, the user will be prompted to switch to the chain, if their wallet supports it.

    Returns Promise<void>

deactivate

  • deactivate(error?: Error): Promise<void>

Legend

  • Constructor
  • Property
  • Method
  • Property
  • Method
  • Inherited property
  • Inherited method
  • Protected property
  • Static property

Generated using TypeDoc