Optional
provider: BaseProviderConnection to MetaMask to use
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.
Instance of Node to get account information from
the version of snap installed in MetaMask
Get an instance of AccountMetaMask for a given account index.
Index of account
Request MetaMask to install Aeternity snap.
Request MetaMask to install Aeternity snap or connect it to the current aepp. MetaMask can have only one Aeternity snap version installed at a time. This method is intended to upgrade the snap to a specified version if needed by the aepp. If Aeternity snap is installed but wasn't used by the aepp, then the user still needs to approve the connection. If the currently installed version corresponds to the version range, then the snap won't be upgraded. To downgrade the snap, the user must manually uninstall the current version.
Snap version range (e.g. 1
, 0.1.*
, ^0.0.9
, ~0.0.9
; >=0.0.9 <0.1.0
)
(default: a version range supported by sdk)
A factory class that generates instances of AccountMetamask.
See
Aeternity snap