public class EthereumClientConnector extends Object implements org.picocontainer.Startable
| Constructor and Description |
|---|
EthereumClientConnector(EthereumWalletService ethereumWalletService,
org.exoplatform.services.listener.ListenerService listenerService,
org.exoplatform.container.ExoContainer container) |
| Modifier and Type | Method and Description |
|---|---|
void |
changeSettings(GlobalSettings newGlobalSettings)
Change currently used globalSettings and re-init
|
long |
getLastWatchedBlockNumber() |
org.web3j.protocol.core.methods.response.TransactionReceipt |
getTransactionReceipt(String transactionHash)
Get transaction receipt
|
String |
getWebsocketProviderURL()
Returns used Websocket URL
|
void |
setLastWatchedBlockNumber(long lastWatchedBlockNumber) |
void |
start() |
void |
startListeninigToTransactions()
Add subscription on Ethereum network to listen on all new transactions
|
void |
stop() |
void |
stopListeninigToTransactions()
Unsubscribe from Ethereum network transaction events
|
public EthereumClientConnector(EthereumWalletService ethereumWalletService, org.exoplatform.services.listener.ListenerService listenerService, org.exoplatform.container.ExoContainer container)
public void start()
start in interface org.picocontainer.Startablepublic void stop()
stop in interface org.picocontainer.Startablepublic void startListeninigToTransactions()
throws Exception
Exceptionpublic void stopListeninigToTransactions()
public org.web3j.protocol.core.methods.response.TransactionReceipt getTransactionReceipt(String transactionHash) throws Exception
transactionHash - ExecutionExceptionInterruptedExceptionExceptionpublic String getWebsocketProviderURL()
public void changeSettings(GlobalSettings newGlobalSettings) throws Exception
newGlobalSettings - Exceptionpublic long getLastWatchedBlockNumber()
public void setLastWatchedBlockNumber(long lastWatchedBlockNumber)
Copyright © 2003–2018 eXo Platform SAS. All rights reserved.