use of network.bisq.api.model.WalletDetails in project bisq-api by mrosseel.
the class BisqProxy method getWalletDetails.
public WalletDetails getWalletDetails() {
if (!btcWalletService.isWalletReady()) {
throw new WalletNotReadyException("Wallet is not ready");
}
Coin availableBalance = btcWalletService.getAvailableBalance();
Coin reservedBalance = updateReservedBalance();
Coin lockedBalance = updateLockedBalance();
return new WalletDetails(availableBalance.getValue(), reservedBalance.getValue(), lockedBalance.getValue());
}
Aggregations