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, watchOnly: boolean, availableNodeHosts: string[], currentNodeHost: string, adapter: ExtensionAdapter): WalletConnection
  • Parameters

    • accountId: string

      The connected account

    • publicKey: string

      The accounts public key

    • watchOnly: boolean

      Indicates whether this account is watch only, or not. Watch Only accounts cannot sign messages.

    • 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

watchOnly

watchOnly: boolean

Indicates whether this account is watch only, or not. Watch Only accounts cannot sign messages.

Methods

listen