Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WalletConnection

Wallet Connection object returned from GenericExtensionWallet.connect You can use this to listen to events in the wallet, i.e. network changes, or permission removals

Hierarchy

  • WalletConnection

Index

Constructors

constructor

  • new WalletConnection(accountId: string, publicKey: string, availableNodeHosts: string[], currentNodeHost: string, adapter: ExtensionAdapter): WalletConnection
  • Parameters

    • accountId: string

      The connected account

    • publicKey: string

      The accounts public key

    • availableNodeHosts: string[]

      The available nodeHosts for given network, which are registered in the wallet.

    • currentNodeHost: string

      The currently selected nodeHost in the wallet

    • adapter: ExtensionAdapter

      the extension adapter with its internal implementation

    Returns WalletConnection

Properties

accountId

accountId: string

The connected account

availableNodeHosts

availableNodeHosts: string[]

The available nodeHosts for given network, which are registered in the wallet.

currentNodeHost

currentNodeHost: string

The currently selected nodeHost in the wallet

publicKey

publicKey: string

The accounts public key

Methods

listen