Extends

ExtensionWrapper


Constructor

constructor()

Property

checker

Type: CyanoChecker
Description: Provide some basic check function such as isLogin, isMainnet etc.

contractCaller

Type: CyanoContractCaller
Description: Provide smart contract invoke and read capability.

actions

Type: CyanoActions
Description: Provide sets of functions to access Ontology, such as transfer, getAccount.

webjsInstance

Type: OntologyDApiWrapper
Description: A OntologyDApiWrapper instance.

Methods

load

async load()

Description

Load OntologyDApiWrapper instance to webjsInstance property.

Returns :

Promise<Result<OntologyDApiWrapper, Status>>:

A OntologyDApiWrapper instance will be set into the data field of Result if success.