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
,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
Our common JSON-RPC response type.
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetError()
long
getId()
boolean
hasError()
void
setError
(Response.Error error) void
setId
(long id) void
setJsonrpc
(String jsonrpc) void
setRawResponse
(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
-