Constructor

constructor(extension)

Parameter

extension - ExtensionWrapper

An instance of ExtensionWrapper. This is a pointer indicated to this class's holder.


Property

extension

Type: ExtensionWrapper
Description: ExtensionWrapper instance passed by constructor.


Methods

installed

async installed()

Description

Check if the extension was installed.

Returns :

Promise<Result<Bool, Status>>:

Boolean value true will be set into the data field of Result if success.

isMainnet

async isMainnet()

Description

Check if extension's network is on mainnet.

Returns :

Promise<Result<Bool, Status>>:

Boolean value true will be set into the data field of Result if success.

isLogin

async isLogin()

Description

Check if extension is logged in.

extra - Any:

Additional data to accommodate the transaction requirements of different blockchains.

Returns :

Promise<Result<Bool, Status>>:

Boolean value true will be set into the data field of Result if success.