Class ContractViewMethodCaller
- java.lang.Object
-
- com.syntifi.near.api.rpc.service.contract.common.ContractViewMethodCaller
-
public class ContractViewMethodCaller extends java.lang.Object
Caller for contract methods- Since:
- 0.2.0
- Author:
- Alexandre Carvalho, Andre Bertolace
-
-
Constructor Summary
Constructors Constructor Description ContractViewMethodCaller()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <T> FunctionCallResult<T>
call(NearClient nearClient, java.lang.String contractAccountId, java.lang.String methodName, Base64String params, java.lang.Class<T> returnClass)
Calls a contract for specific method
-
-
-
Method Detail
-
call
public static <T> FunctionCallResult<T> call(NearClient nearClient, java.lang.String contractAccountId, java.lang.String methodName, Base64String params, java.lang.Class<T> returnClass) throws java.io.IOException
Calls a contract for specific method- Type Parameters:
T
- type of the result object- Parameters:
methodName
- the method to callreturnClass
- the type of result objectnearClient
- the near service to usecontractAccountId
- the contract account idparams
- the method parameters encoded in Base64- Returns:
- a typed FunctionCallResult for the requested contract method
- Throws:
java.io.IOException
- thrown when fails to map json to result object
-
-