Package org.web3j.protocol.core
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 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 responsejava.lang.String
encodeFunctionCall()
return an encoded function, so it can be manually signed and transmitted-
Methods inherited from class org.web3j.protocol.core.RemoteCall
flowable, send, sendAsync
-
-
-
-
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
-
-