<p>Use <code>Wallet.getTransactions(boolean)</code>. This returns a <code>Set&lt;Transaction&gt;</code>:</p>

<pre><code>boolean includeDeadTransactions = true;
Set&lt;Transaction&gt; transactions = wallet.getTransactions(includeDeadTransactions);

for (Transaction t : transactions) {
    //Do something
}
</code></pre>

<p>You will get all transactions you can looping over so you get each transaction details. </p>

CC BY-SA 3.0
2018-03-28T16:46:49.440Z
2018-03-28T16:46:49.440Z
Tailer
<p>I am using BitcoinJ lib for creating wallet and transaction.But now I want to know the confirmation count.So, is there any method which can give confirmation count</p>

<bitcoinj>
How to get confirmation of transaction using Bitcoin j implementaion
Aman Vyas
# How to get confirmation of transaction using Bitcoin j implementaion

(Asked by: username_0 on 2018-03-28)

I am using BitcoinJ lib for creating wallet and transaction.But now I want to know the confirmation count.So, is there any method which can give confirmation count

**Tags:** bitcoinj


---

## 1 answers

### Answer by username_1 on 2018-03-28. Score: 1

Use Wallet.getTransactions(boolean). This returns a Set:
boolean includeDeadTransactions = true;
Set transactions = wallet.getTransactions(includeDeadTransactions);

for (Transaction t : transactions) {
    //Do something
}

You will get all transactions you can looping over so you get each transaction details.


---

