Package org.web3j.protocol
Interface Web3j
-
- All Known Subinterfaces:
Admin
- All Known Implementing Classes:
JsonRpc2_0Admin
,JsonRpc2_0Web3j
public interface Web3j extends Ethereum, Web3jRx, Batcher
JSON-RPC Request object building factory.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static Web3j
build(Web3jService web3jService)
Construct a new Web3j instance.static Web3j
build(Web3jService web3jService, long pollingInterval, java.util.concurrent.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, ethGasPrice, ethGetBalance, ethGetBlockByHash, ethGetBlockByNumber, ethGetBlockTransactionCountByHash, ethGetBlockTransactionCountByNumber, ethGetCode, ethGetCompilers, ethGetFilterChanges, ethGetFilterLogs, ethGetLogs, ethGetStorageAt, ethGetTransactionByBlockHashAndIndex, ethGetTransactionByBlockNumberAndIndex, ethGetTransactionByHash, ethGetTransactionCount, ethGetTransactionReceipt, ethGetUncleByBlockHashAndIndex, ethGetUncleByBlockNumberAndIndex, ethGetUncleCountByBlockHash, ethGetUncleCountByBlockNumber, ethGetWork, ethHashrate, 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 Detail
-
build
static Web3j build(Web3jService web3jService)
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, java.util.concurrent.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.
-
-