Class ContractMethodCaller

    • Constructor Detail

      • ContractMethodCaller

        public ContractMethodCaller()
    • 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 call
        returnClass - the type of result object
        nearService - the near service to use
        contractAccountId - the contract account id
        params - 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