public final class LedgerManagerImpl extends Object implements LedgerManager
| Constructor and Description |
|---|
LedgerManagerImpl(io.vertigo.commons.codec.CodecManager codecManager,
LedgerPlugin ledgerPlugin) |
| Modifier and Type | Method and Description |
|---|---|
BigInteger |
getMyWalletBalance()
Gets the current balance of the wallet
|
BigInteger |
getWalletBalance(LedgerAddress ledgerAddress)
Gets the current balance of the provided address
|
void |
pollQueue()
Daemon to unstack processes to end them
|
String |
sendData(String data)
Sends data message on the ledger.
|
void |
sendDataAsync(String data,
Runnable callback)
Sends data message on the ledger asynchronously with a callback.
|
@Inject
public LedgerManagerImpl(io.vertigo.commons.codec.CodecManager codecManager,
LedgerPlugin ledgerPlugin)
public String sendData(String data)
LedgerManagersendData in interface LedgerManagerpublic void sendDataAsync(String data, Runnable callback)
LedgerManagersendDataAsync in interface LedgerManagerpublic void pollQueue()
public BigInteger getWalletBalance(LedgerAddress ledgerAddress)
LedgerManagergetWalletBalance in interface LedgerManagerpublic BigInteger getMyWalletBalance()
LedgerManagergetMyWalletBalance in interface LedgerManagerCopyright © 2019. All rights reserved.