Package org.web3j.protocol.core
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,EthBaseFee,EthBlock,EthBlockNumber,EthCall,EthChainId,EthCoinbase,EthCompileLLL,EthCompileSerpent,EthCompileSolidity,EthEstimateGas,EthFeeHistory,EthFilter,EthGasPrice,EthGetBalance,EthGetBlockReceipts,EthGetBlockTransactionCountByHash,EthGetBlockTransactionCountByNumber,EthGetCode,EthGetCompilers,EthGetProof,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
Our common JSON-RPC response type.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetError()longgetId()booleanhasError()voidsetError(Response.Error error) voidsetId(long id) voidsetJsonrpc(String jsonrpc) voidsetRawResponse(String rawResponse) void
-
Constructor Details
-
Response
public Response()
-
-
Method Details
-
getId
public long getId() -
setId
public void setId(long id) -
getJsonrpc
-
setJsonrpc
-
getResult
-
setResult
-
getError
-
setError
-
hasError
public boolean hasError() -
getRawResponse
-
setRawResponse
-