Package org.web3j.protocol.admin
Class JsonRpc2_0Admin
- java.lang.Object
-
- org.web3j.protocol.core.JsonRpc2_0Web3j
-
- org.web3j.protocol.admin.JsonRpc2_0Admin
-
-
Field Summary
-
Fields inherited from class org.web3j.protocol.core.JsonRpc2_0Web3j
DEFAULT_BLOCK_TIME, web3jService
-
-
Constructor Summary
Constructors Constructor Description JsonRpc2_0Admin(Web3jService web3jService)JsonRpc2_0Admin(Web3jService web3jService, long pollingInterval, java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Request<?,PersonalListAccounts>personalListAccounts()Request<?,NewAccountIdentifier>personalNewAccount(java.lang.String password)Request<?,EthSendTransaction>personalSendTransaction(Transaction transaction, java.lang.String passphrase)Request<?,PersonalUnlockAccount>personalUnlockAccount(java.lang.String accountId, java.lang.String password)Request<?,PersonalUnlockAccount>personalUnlockAccount(java.lang.String accountId, java.lang.String password, java.math.BigInteger duration)Request<?,TxPoolContent>txPoolContent()-
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, ethGasPrice, ethGetBalance, ethGetBlockByHash, ethGetBlockByNumber, ethGetBlockTransactionCountByHash, ethGetBlockTransactionCountByNumber, ethGetCode, ethGetCompilers, ethGetFilterChanges, ethGetFilterLogs, ethGetLogs, ethGetStorageAt, ethGetTransactionByBlockHashAndIndex, ethGetTransactionByBlockNumberAndIndex, ethGetTransactionByHash, ethGetTransactionCount, ethGetTransactionReceipt, ethGetUncleByBlockHashAndIndex, ethGetUncleByBlockNumberAndIndex, ethGetUncleCountByBlockHash, ethGetUncleCountByBlockNumber, ethGetWork, ethHashrate, ethLogFlowable, 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, 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
-
-
-
-
Constructor Detail
-
JsonRpc2_0Admin
public JsonRpc2_0Admin(Web3jService web3jService)
- Parameters:
web3jService-
-
JsonRpc2_0Admin
public JsonRpc2_0Admin(Web3jService web3jService, long pollingInterval, java.util.concurrent.ScheduledExecutorService scheduledExecutorService)
- Parameters:
web3jService-pollingInterval-scheduledExecutorService-
-
-
Method Detail
-
personalListAccounts
public Request<?,PersonalListAccounts> personalListAccounts()
- Specified by:
personalListAccountsin interfaceAdmin- Returns:
-
personalNewAccount
public Request<?,NewAccountIdentifier> personalNewAccount(java.lang.String password)
- Specified by:
personalNewAccountin interfaceAdmin- Parameters:
password-- Returns:
-
personalUnlockAccount
public Request<?,PersonalUnlockAccount> personalUnlockAccount(java.lang.String accountId, java.lang.String password, java.math.BigInteger duration)
- Specified by:
personalUnlockAccountin interfaceAdmin- Parameters:
accountId-password-duration-- Returns:
-
personalUnlockAccount
public Request<?,PersonalUnlockAccount> personalUnlockAccount(java.lang.String accountId, java.lang.String password)
- Specified by:
personalUnlockAccountin interfaceAdmin- Parameters:
accountId-password-- Returns:
-
personalSendTransaction
public Request<?,EthSendTransaction> personalSendTransaction(Transaction transaction, java.lang.String passphrase)
- Specified by:
personalSendTransactionin interfaceAdmin- Parameters:
transaction-passphrase-- Returns:
-
txPoolContent
public Request<?,TxPoolContent> txPoolContent()
- Specified by:
txPoolContentin interfaceAdmin- Returns:
-
-