Package io.vertigo.audit.ledger
Interface LedgerManager
-
- All Superinterfaces:
io.vertigo.core.node.component.Component
,io.vertigo.core.node.component.CoreComponent
,io.vertigo.core.node.component.Manager
- All Known Implementing Classes:
LedgerManagerImpl
public interface LedgerManager extends io.vertigo.core.node.component.Manager
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description BigInteger
getMyWalletBalance()
Gets the current balance of the walletBigInteger
getWalletBalance(LedgerAddress ledgerAddress)
Gets the current balance of the provided addressString
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.
-
-
-
Method Detail
-
sendDataAsync
void sendDataAsync(String data, Runnable callback)
Sends data message on the ledger asynchronously with a callback.- Parameters:
data
-
-
getWalletBalance
BigInteger getWalletBalance(LedgerAddress ledgerAddress)
Gets the current balance of the provided address- Parameters:
ledgerAddress
-
-
getMyWalletBalance
BigInteger getMyWalletBalance()
Gets the current balance of the wallet
-
-