Package org.web3j.protocol
Interface Web3j
- All Known Subinterfaces:
Admin
- All Known Implementing Classes:
JsonRpc2_0Admin
,JsonRpc2_0Web3j
JSON-RPC Request object building factory.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Web3j
build
(Web3jService web3jService) Construct a new Web3j instance.static Web3j
build
(Web3jService web3jService, long pollingInterval, ScheduledExecutorService scheduledExecutorService) Construct a new Web3j instance.void
shutdown()
Shutdowns a Web3j instance and closes opened resources.Methods inherited from interface org.web3j.protocol.core.Ethereum
adminAddPeer, adminDataDir, adminNodeInfo, adminPeers, adminRemovePeer, dbGetHex, dbGetString, dbPutHex, dbPutString, ethAccounts, ethBlockNumber, ethCall, ethChainId, ethCoinbase, ethCompileLLL, ethCompileSerpent, ethCompileSolidity, ethEstimateGas, ethFeeHistory, ethGasPrice, ethGetBalance, ethGetBlockByHash, ethGetBlockByNumber, ethGetBlockReceipts, ethGetBlockTransactionCountByHash, ethGetBlockTransactionCountByNumber, ethGetCode, ethGetCompilers, ethGetFilterChanges, ethGetFilterLogs, ethGetLogs, ethGetStorageAt, ethGetTransactionByBlockHashAndIndex, ethGetTransactionByBlockNumberAndIndex, ethGetTransactionByHash, ethGetTransactionCount, ethGetTransactionReceipt, ethGetUncleByBlockHashAndIndex, ethGetUncleByBlockNumberAndIndex, ethGetUncleCountByBlockHash, ethGetUncleCountByBlockNumber, ethGetWork, ethHashrate, ethMaxPriorityFeePerGas, ethMining, ethNewBlockFilter, ethNewFilter, ethNewPendingTransactionFilter, ethProtocolVersion, ethSendRawTransaction, ethSendTransaction, ethSign, ethSubmitHashrate, ethSubmitWork, ethSyncing, ethUninstallFilter, netListening, netPeerCount, netVersion, shhAddToGroup, shhGetFilterChanges, shhGetMessages, shhHasIdentity, shhNewFilter, shhNewGroup, shhNewIdentity, shhPost, shhUninstallFilter, shhVersion, txPoolStatus, web3ClientVersion, web3Sha3
Methods inherited from interface org.web3j.protocol.rx.Web3jRx
blockFlowable, ethBlockHashFlowable, ethLogFlowable, ethPendingTransactionHashFlowable, logsNotifications, newHeadsNotifications, pendingTransactionFlowable, replayPastAndFutureBlocksFlowable, replayPastAndFutureTransactionsFlowable, replayPastBlocksFlowable, replayPastBlocksFlowable, replayPastBlocksFlowable, replayPastBlocksFlowable, replayPastTransactionsFlowable, replayPastTransactionsFlowable, transactionFlowable
-
Method Details
-
build
Construct a new Web3j instance.- Parameters:
web3jService
- web3j service instance - i.e. HTTP or IPC- Returns:
- new Web3j instance
-
build
static Web3j build(Web3jService web3jService, long pollingInterval, ScheduledExecutorService scheduledExecutorService) Construct a new Web3j instance.- Parameters:
web3jService
- web3j service instance - i.e. HTTP or IPCpollingInterval
- polling interval for responses from network nodesscheduledExecutorService
- executor service to use for scheduled tasks. You are responsible for terminating this thread pool- Returns:
- new Web3j instance
-
shutdown
void shutdown()Shutdowns a Web3j instance and closes opened resources.
-