Class ContractMethodCaller
- java.lang.Object
-
- com.syntifi.near.api.rpc.service.contract.ContractMethodCaller
-
- Direct Known Subclasses:
FTContractFunctionCall.StakingMethodCaller,NFTContractFunctionCall.StakingMethodCaller,StakingContractFunctionCall.StakingMethodCaller
public abstract class ContractMethodCaller extends java.lang.ObjectCaller for contract methods- Since:
- 0.2.0
- Author:
- Alexandre Carvalho, Andre Bertolace
-
-
Constructor Summary
Constructors Constructor Description ContractMethodCaller()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> FunctionCallResult<T>callFor(ContractMethod method, java.lang.Class<T> returnClass, NearService nearService, java.lang.String contractAccountId, ContractMethodParams params)Calls a contract for specific method
-
-
-
Method Detail
-
callFor
public static <T> FunctionCallResult<T> callFor(ContractMethod method, java.lang.Class<T> returnClass, NearService nearService, java.lang.String contractAccountId, ContractMethodParams params) throws java.io.IOException
Calls a contract for specific method- Type Parameters:
T- type of the result object- Parameters:
method- the method to callreturnClass- the type of result objectnearService- the near service to usecontractAccountId- the contract account idparams- the method parameters- Returns:
- a typed FunctionCallResult for the requested contract method
- Throws:
java.io.IOException- thrown when fails to map json to result object
-
-