public class EthereumClientConnector extends Object
| Constructor and Description |
|---|
EthereumClientConnector() |
| Modifier and Type | Method and Description |
|---|---|
void |
changeSettings(org.exoplatform.addon.ethereum.wallet.model.GlobalSettings newGlobalSettings)
Change currently used globalSettings and re-init
|
org.web3j.protocol.core.methods.response.EthBlock.Block |
getBlock(String blockHash)
Get block by hash
|
int |
getConnectionInterruptionCount() |
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() |
org.web3j.protocol.core.methods.response.Transaction |
getTransaction(String transactionHash)
Get transaction by hash
|
org.web3j.protocol.core.methods.response.TransactionReceipt |
getTransactionReceipt(String transactionHash)
Get transaction receipt by hash
|
boolean |
isConnected() |
void |
start(org.exoplatform.addon.ethereum.wallet.model.GlobalSettings storedSettings) |
void |
stop() |
public void start(org.exoplatform.addon.ethereum.wallet.model.GlobalSettings storedSettings)
public void stop()
public org.web3j.protocol.core.methods.response.Transaction getTransaction(String transactionHash) throws InterruptedException
transactionHash - transaction hash to retrieveInterruptedException - when Blockchain request is interruptedpublic org.web3j.protocol.core.methods.response.EthBlock.Block getBlock(String blockHash) throws InterruptedException
blockHash - block hash to retrieveInterruptedException - when Blockchain request is interruptedpublic org.web3j.protocol.core.methods.response.TransactionReceipt getTransactionReceipt(String transactionHash) throws InterruptedException
transactionHash - transaction hash to retrieveInterruptedException - when Blockchain request is interruptedpublic void changeSettings(org.exoplatform.addon.ethereum.wallet.model.GlobalSettings newGlobalSettings)
newGlobalSettings - newly saved global settingspublic boolean isConnected()
public int getConnectionInterruptionCount()
public long getLastestBlockNumber()
throws InterruptedException,
IOException
InterruptedExceptionIOExceptionpublic Set<String> getContractTransactions(String contractsAddress, long fromBlock, long toBlock) throws IOException, InterruptedException
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
blockchainInterruptedException - if an interruption is made while getting
information from blockchainCopyright © 2003–2019 eXo Platform SAS. All rights reserved.