Class EthereumLedgerPlugin
- java.lang.Object
-
- io.vertigo.audit.plugins.ledger.ethereum.EthereumLedgerPlugin
-
- All Implemented Interfaces:
LedgerPlugin
,io.vertigo.core.node.component.Activeable
,io.vertigo.core.node.component.CoreComponent
,io.vertigo.core.node.component.Plugin
public final class EthereumLedgerPlugin extends Object implements LedgerPlugin, io.vertigo.core.node.component.Activeable
Client RPC Ethereum (for Geth and Parity)- Author:
- xdurand
-
-
Constructor Summary
Constructors Constructor Description EthereumLedgerPlugin(EventBusManager eventBusManager, String urlRpcEthNode, String myAccountName, String myPublicAddr, String defaultDestAccountName, String defaultDestPublicAddr, String walletPassword, String walletPath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BigInteger
getMyWalletBalance()
Get the current balance of the walletBigInteger
getWalletBalance(LedgerAddress ledgerAddress)
Gets the current balance of the provided addressvoid
sendData(String data)
Sent data to the default address on the ledger.void
start()
void
stop()
-
-
-
Method Detail
-
start
public void start()
- Specified by:
start
in interfaceio.vertigo.core.node.component.Activeable
-
stop
public void stop()
- Specified by:
stop
in interfaceio.vertigo.core.node.component.Activeable
-
getMyWalletBalance
public BigInteger getMyWalletBalance()
Description copied from interface:LedgerPlugin
Get the current balance of the wallet- Specified by:
getMyWalletBalance
in interfaceLedgerPlugin
- Returns:
- the current balance of the wallet
-
getWalletBalance
public BigInteger getWalletBalance(LedgerAddress ledgerAddress)
Description copied from interface:LedgerPlugin
Gets the current balance of the provided address- Specified by:
getWalletBalance
in interfaceLedgerPlugin
- Returns:
- the current balance of the provided address
-
sendData
public void sendData(String data)
Description copied from interface:LedgerPlugin
Sent data to the default address on the ledger.- Specified by:
sendData
in interfaceLedgerPlugin
- Parameters:
data
- data in clear to store
-
-