MarketSDK
The core class for interacting with the SDK.
Properties
sdk.web3
sdk.web3
The Web3 instance used for all RPC calls.
Type: Web3
sdk.options
sdk.options
An object containing all deployed contracts info.
Type: MarketOptions
Note: the sdk.options
property is only available after a successful sdk.init()
call.
Methods
sdk.init
sdk.init
Initializes the MarketSDK instance. sdk.init()
must be called before accessing any SDK features.
Parameters: none
Returns: Promise<void>
Static Methods
MarketSDK.init
MarketSDK.init
Creates and returns an initialized MarketSDK instance.
Parameters:
web3:
Web3
options?:
MarketOptions
Returns:
Promise<
MarketSDK
>
Last updated