Package org.web3j.protocol.admin
Class JsonRpc2_0Admin
java.lang.Object
org.web3j.protocol.core.JsonRpc2_0Web3j
org.web3j.protocol.admin.JsonRpc2_0Admin
JSON-RPC 2.0 factory implementation for common Parity and Geth.
-
Field Summary
Fields inherited from class org.web3j.protocol.core.JsonRpc2_0Web3j
DEFAULT_BLOCK_TIME, web3jService
-
Constructor Summary
ConstructorsConstructorDescriptionJsonRpc2_0Admin
(Web3jService web3jService) JsonRpc2_0Admin
(Web3jService web3jService, long pollingInterval, ScheduledExecutorService scheduledExecutorService) -
Method Summary
Modifier and TypeMethodDescriptionpersonalNewAccount
(String password) personalSendTransaction
(Transaction transaction, String passphrase) personalUnlockAccount
(String accountId, String password) personalUnlockAccount
(String accountId, String password, BigInteger duration) Methods inherited from class org.web3j.protocol.core.JsonRpc2_0Web3j
adminAddPeer, adminDataDir, adminNodeInfo, adminPeers, adminRemovePeer, blockFlowable, dbGetHex, dbGetString, dbPutHex, dbPutString, ethAccounts, ethBlockHashFlowable, 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, ethLogFlowable, ethMaxPriorityFeePerGas, ethMining, ethNewBlockFilter, ethNewFilter, ethNewPendingTransactionFilter, ethPendingTransactionHashFlowable, ethProtocolVersion, ethSendRawTransaction, ethSendTransaction, ethSign, ethSubmitHashrate, ethSubmitWork, ethSyncing, ethUninstallFilter, logsNotifications, netListening, netPeerCount, netVersion, newBatch, newHeadsNotifications, pendingTransactionFlowable, replayPastAndFutureBlocksFlowable, replayPastAndFutureTransactionsFlowable, replayPastBlocksFlowable, replayPastBlocksFlowable, replayPastBlocksFlowable, replayPastBlocksFlowable, replayPastTransactionsFlowable, replayPastTransactionsFlowable, shhAddToGroup, shhGetFilterChanges, shhGetMessages, shhHasIdentity, shhNewFilter, shhNewGroup, shhNewIdentity, shhPost, shhUninstallFilter, shhVersion, shutdown, transactionFlowable, txPoolStatus, web3ClientVersion, web3Sha3
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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
-
Constructor Details
-
JsonRpc2_0Admin
-
JsonRpc2_0Admin
public JsonRpc2_0Admin(Web3jService web3jService, long pollingInterval, ScheduledExecutorService scheduledExecutorService)
-
-
Method Details
-
personalListAccounts
- Specified by:
personalListAccounts
in interfaceAdmin
-
personalNewAccount
- Specified by:
personalNewAccount
in interfaceAdmin
-
personalUnlockAccount
public Request<?,PersonalUnlockAccount> personalUnlockAccount(String accountId, String password, BigInteger duration) - Specified by:
personalUnlockAccount
in interfaceAdmin
-
personalUnlockAccount
- Specified by:
personalUnlockAccount
in interfaceAdmin
-
personalSendTransaction
public Request<?,EthSendTransaction> personalSendTransaction(Transaction transaction, String passphrase) - Specified by:
personalSendTransaction
in interfaceAdmin
-
txPoolContent
- Specified by:
txPoolContent
in interfaceAdmin
-