using MoralisUnity.Web3Api.Models;
using Nethereum.Hex.HexTypes;
public async void executeContractFunction()
string ABI = "[{\"inputs\":[{\"internalType\":\"int256\",\"name\":\"p\",\"type\":\"int256\"}],\"name\":\"test\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]";
string ContractAddress = "0xD3622d5eDA04B0A393EA10513239A1fD50A61B65";
string FunctioName = "test";
object[] inputParams = { 3 };
HexBigInteger value = new HexBigInteger("0x0");
HexBigInteger gas = new HexBigInteger("800000");
HexBigInteger gasprice = new HexBigInteger("230000");
string result = await Moralis.ExecuteContractFunction(contractAddress: ContractAddress, abi: ABI, functionName: FunctioName, args: inputParams, value: value, gas: gas, gasPrice: gasprice);
Debug.Log("Txhash :" + result);
Debug.Log("Error :" + error);