Extends¶
Constructor¶
constructor()
Property¶
checker¶
Type: MetamaskChecker
Description: Provide some basic check function such as isLogin, isMainnet etc.
connector¶
Type: MetamaskConnector
Description: Provide connection capability to the web extension.
contractCaller¶
Type: MetamaskContractCaller
Description: Provide smart contract invoke and read capability.
actions¶
Type: MetamaskActions
Description: Provide sets of functions to access Ethereum, such as transfer, getAccount.
webjsInstance¶
Type: Web3
Description: A Web3 instance.
Methods¶
load¶
async load()
Description
Load Web3 instance to webjsInstance property.
Returns :
Promise<Result<Web3, Status>>
:A Web3 instance will be set into the data field of Result if success.