Class Response<T>

java.lang.Object
org.web3j.protocol.core.Response<T>
Type Parameters:
T - the object type contained within the response
Direct Known Subclasses:
AdminDataDir, AdminNodeInfo, AdminPeers, BooleanResponse, BooleanResponse, DbGetHex, DbGetString, DbPutHex, DbPutString, EthAccounts, EthBlock, EthBlockNumber, EthCall, EthChainId, EthCoinbase, EthCompileLLL, EthCompileSerpent, EthCompileSolidity, EthEstimateGas, EthFeeHistory, EthFilter, EthGasPrice, EthGetBalance, EthGetBlockReceipts, EthGetBlockTransactionCountByHash, EthGetBlockTransactionCountByNumber, EthGetCode, EthGetCompilers, EthGetStorageAt, EthGetTransactionCount, EthGetTransactionReceipt, EthGetUncleCountByBlockHash, EthGetUncleCountByBlockNumber, EthGetWork, EthHashrate, EthLog, EthMaxPriorityFeePerGas, EthMining, EthProtocolVersion, EthSendRawTransaction, EthSendTransaction, EthSign, EthSubmitHashrate, EthSubmitWork, EthSubscribe, EthSyncing, EthTransaction, EthUninstallFilter, EthUnsubscribe, MinerStartResponse, NetListening, NetPeerCount, NetVersion, NewAccountIdentifier, PersonalListAccounts, PersonalSign, PersonalUnlockAccount, ShhAddToGroup, ShhHasIdentity, ShhMessages, ShhNewFilter, ShhNewGroup, ShhNewIdentity, ShhPost, ShhUninstallFilter, ShhVersion, TxPoolContent, TxPoolStatus, VoidResponse, Web3ClientVersion, Web3Sha3

public class Response<T> extends Object
Our common JSON-RPC response type.
  • Constructor Details

    • Response

      public Response()
  • Method Details

    • getId

      public long getId()
    • setId

      public void setId(long id)
    • getJsonrpc

      public String getJsonrpc()
    • setJsonrpc

      public void setJsonrpc(String jsonrpc)
    • getResult

      public T getResult()
    • setResult

      public void setResult(T result)
    • getError

      public Response.Error getError()
    • setError

      public void setError(Response.Error error)
    • hasError

      public boolean hasError()
    • getRawResponse

      public String getRawResponse()
    • setRawResponse

      public void setRawResponse(String rawResponse)