Constructor¶
constructor()
Property¶
checker¶
Type: ExtensionChecker
Description: provide some basic check function such as isLogin, isMainnet etc.
connector¶
Type: ExtensionConnector
Description: Provide connection capability to the web extension.
contractCaller¶
Type: ExtensionContractCaller
Description: Provide smart contract invoke and read capability.
actions¶
Type: ExtensionActions
Description: Provide sets of functions to access blockchain, such as transfer, getAccount.
webjsInstance¶
Type: Any
Description: A webjs instance of web extensions, such as web3js, eosjs etc. This property was provided for the developers who fomiliar to use the orginal js-sdk of the blockchain.
Methods¶
load¶
async load(param)
Description
Load a instance of the js-sdk for the blockchain such as web3js.
Parameters :
param
-Any
:Config data required by extension.
Returns :
A webjs instance of web extensions, such as web3js, eosjs etc. will be set into the data field of Result if success.