Optional options: ReadSCOptionsOptional options: ReadSCOptionsExecutes a smart contract call operation
The smart contract function to be called.
Includes optional and required parameters like fee, maxGas, coins, and periodToLive.
A promise that resolves to an Operation object representing the transaction.
Optional options: CallSCOptionsIncreases the amount of tokens that spenderAddress can spend on behalf of the caller.
Optional options: CallSCOptionsWhen options.coins is not set, the storage cost of the allowance entry is sent if the
entry does not exist yet. Tokens from MRC20 0.1.0 (such as WMAS once MIP-0002 is active) refund the
unused coins and revert if the new entry is not paid for. Older tokens pay the storage themselves
and keep the coins.
Executes a smart contract read operation
The smart contract function to be called.
Parameter for the function call in Uint8Array format.
Includes optional parameters like fee, maxGas, coins, and periodToLive.
A promise that resolves to the result of the read operation.
Optional options: CallSCOptionsOptional options: CallSCOptionsOptional options: ReadSCOptionsStatic deployDeploy a SmartContract byteCode
Web3 provider.
Compiled SmartContract bytecode.
Parameter for call of constructor function.
Includes optional parameters like fee, maxGas, coins, and periodToLive.
A promise that resolves to the result of the read operation.
Example