Search in sources :

Example 1 with WalletTransactionList

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;
}
Also used : Wallet(org.bitcoinj.wallet.Wallet) WalletTransactionList(network.bisq.api.model.WalletTransactionList)

Aggregations

WalletTransactionList (network.bisq.api.model.WalletTransactionList)1 Wallet (org.bitcoinj.wallet.Wallet)1