Class RemoteFunctionCall<T>

  • Type Parameters:
    T - Our return type.

    public class RemoteFunctionCall<T>
    extends RemoteCall<T>
    A wrapper for a callable function. Can also return the raw encoded function
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoteFunctionCall​(org.web3j.abi.datatypes.Function function, java.util.concurrent.Callable<T> callable)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<org.web3j.abi.datatypes.Type> decodeFunctionResponse​(java.lang.String response)
      decode a method response
      java.lang.String encodeFunctionCall()
      return an encoded function, so it can be manually signed and transmitted
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RemoteFunctionCall

        public RemoteFunctionCall​(org.web3j.abi.datatypes.Function function,
                                  java.util.concurrent.Callable<T> callable)
    • Method Detail

      • encodeFunctionCall

        public java.lang.String encodeFunctionCall()
        return an encoded function, so it can be manually signed and transmitted
        Returns:
        the function call, encoded.
      • decodeFunctionResponse

        public java.util.List<org.web3j.abi.datatypes.Type> decodeFunctionResponse​(java.lang.String response)
        decode a method response
        Parameters:
        response - the encoded response
        Returns:
        list of abi types