public class EthereumClientConnector extends Object implements org.exoplatform.addon.wallet.statistic.ExoWalletStatisticService, org.picocontainer.Startable
| Constructor and Description |
|---|
EthereumClientConnector() |
| Modifier and Type | Method and Description |
|---|---|
Set<String> |
getContractTransactions(String contractsAddress,
long fromBlock,
long toBlock)
Retrieve from blockchain transaction hashes from contract starting from a
block number to a block number
|
long |
getLastestBlockNumber() |
BigInteger |
getNonce(String walletAddress)
Retruns current nonce to use for next transaction to use on blockchain for
a selected wallet address
|
Map<String,Object> |
getStatisticParameters(String statisticType,
Object result,
Object... methodArgs) |
org.web3j.protocol.core.methods.response.Transaction |
getTransaction(String transactionHash)
Get transaction by hash
|
org.web3j.tx.TransactionManager |
getTransactionManager(org.web3j.crypto.Credentials credentials)
Return
TransactionManager to use when interacting with blockchain |
org.web3j.protocol.core.methods.response.TransactionReceipt |
getTransactionReceipt(String transactionHash)
Get transaction receipt by hash
|
org.web3j.protocol.Web3j |
getWeb3j() |
void |
start() |
void |
start(boolean blocking) |
void |
stop() |
public void start()
start in interface org.picocontainer.Startablepublic void start(boolean blocking)
public void stop()
stop in interface org.picocontainer.Startablepublic org.web3j.tx.TransactionManager getTransactionManager(org.web3j.crypto.Credentials credentials)
TransactionManager to use when interacting with blockchaincredentials - wallet credentials to use for this transaction managerTransactionManagerpublic org.web3j.protocol.core.methods.response.Transaction getTransaction(String transactionHash)
transactionHash - transaction hash to retrievepublic org.web3j.protocol.core.methods.response.TransactionReceipt getTransactionReceipt(String transactionHash)
transactionHash - transaction hash to retrievepublic long getLastestBlockNumber()
throws IOException
IOException - when error sending transaction on blockchainpublic Set<String> getContractTransactions(String contractsAddress, long fromBlock, long toBlock) throws IOException
contractsAddress - blockchain contract addressfromBlock - search starting from this block numbertoBlock - search until this block numberSet of transaction hashesIOException - if an error happens while getting information from
blockchainpublic Map<String,Object> getStatisticParameters(String statisticType, Object result, Object... methodArgs)
getStatisticParameters in interface org.exoplatform.addon.wallet.statistic.ExoWalletStatisticServicepublic BigInteger getNonce(String walletAddress) throws IOException
walletAddress - wallet adres to determine its next nonceIOException - if an I/O problem happens when connecting to blockchainpublic org.web3j.protocol.Web3j getWeb3j()
Copyright © 2003–2019 eXo Platform SAS. All rights reserved.