CallSCMethod
Description
Call a smart contract method.
Declaration
public static void CallSCMethod(string scAddress, string methodName, long gas, UnityAction<CompleteCallback<string[]>> completeMethod, params IBinaryType[] args)Parameters
Name
Description
scAddress
The address of the smart contract.
methodName
The method to call.
gas
The gas required to execute the called SC method.
completeMethod
Callback to get the result of the call.
args
The list of arguments. Can be of type: BooleanValue, BytesValue, EnumValue, MultiValue, NumericValue, OptionValue, StructValue, TokenIdentifierValue
Example
This method increases with 10 the value from the basic adder smart contract.
Last updated