use of network.bisq.api.model.WalletTransactionList in project bisq-api by mrosseel.
the class BisqProxy method getWalletTransactions.
public WalletTransactionList getWalletTransactions() {
final Wallet wallet = walletsSetup.getBtcWallet();
WalletTransactionList walletTransactions = new WalletTransactionList();
walletTransactions.transactions.addAll(btcWalletService.getTransactions(true).stream().map(transaction -> toWalletTransaction(wallet, transaction)).collect(Collectors.toList()));
walletTransactions.total = walletTransactions.transactions.size();
return walletTransactions;
}
Aggregations