Extends¶
Constructor¶
constructor(extension)
Parameter
extension
-MetamaskExtension
Property¶
extension¶
Type: MetamaskExtension
Description: Metamask wrapper instance passed by constructor.
Methods¶
installed¶
async installed()
Description
Check if MetaMask web extension was installed.
Returns :
Promise<Result<Bool, Status>>
:Boolean value true will be set into the data field of Result if MetaMask installed.
isMainnet¶
async isMainnet()
Description
Check if the connected network of MetaMask is mainnet.
Returns :
Promise<Result<Bool, Status>>
:If Status is SUCCESS , the data field of Result will be true if MetaMask connected to Ethereum mainnet.
isLogin¶
async isLogin()
Description
Check if MetaMask is logged in.
Returns :
Promise<Result<Bool, Status>>
:If Status is SUCCESS , the data field of Result will be true if MetaMask was login.