Class RemoteFunctionCall<T>

java.lang.Object
org.web3j.protocol.core.RemoteCall<T>
org.web3j.protocol.core.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 Details

    • RemoteFunctionCall

      public RemoteFunctionCall(org.web3j.abi.datatypes.Function function, Callable<T> callable)
  • Method Details

    • encodeFunctionCall

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

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