Class AccountMetamaskFactory

A factory class that generates instances of AccountMetamask.

Hierarchy (view full)

Constructors

Properties

provider: BaseProvider

Methods

  • Discovers accounts in set that already have been used (has any on-chain transactions). It returns an empty array if none of accounts been used. If a used account is preceded by an unused account then it would be ignored.

    Parameters

    • node: Node

      Instance of Node to get account information from

    Returns Promise<AccountBase[]>

  • It throws an exception if MetaMask or Aeternity snap has an incompatible version or is not installed.

    Returns Promise<void>