<p>Bitcoinj is only a library, but there is an experimental full verification mode that would allow this. <a href="https://bitcoinj.github.io/full-verification" rel="nofollow noreferrer">https://bitcoinj.github.io/full-verification</a>  It is important to note it is not intended for production use and almost certainly contains chain splitting bugs. </p>

CC BY-SA 3.0
2017-08-12T19:24:58.900Z
2017-08-12T19:24:58.900Z
m1xolyd1an
<p>Try:</p>

<pre><code>Map&lt;Sha256Hash, Transaction&gt; unspentTxs = wallet.getTransactionPool(WalletTransaction.Pool.UNSPENT);
</code></pre>

CC BY-SA 4.0
2018-07-24T10:23:38.227Z
2018-07-24T10:23:38.227Z
Ander Acosta
<p>I'm trying to get unspent transaction using bitcoinj like <a href="http://tbtc.blockr.io/api/v1/address/unspent/n1XZMMm3ikh97Mr8JVnnahfugad2DRcVrB?format=xml" rel="nofollow noreferrer">here</a>
without using api calls. How can I do this?</p>

<bitcoinj><utxo>
How to get unspent bitcoins using bitcoinj
sano143
# How to get unspent bitcoins using bitcoinj

(Asked by: username_0 on 2017-08-12)

I'm trying to get unspent transaction using bitcoinj like [here](http://tbtc.blockr.io/api/v1/address/unspent/n1XZMMm3ikh97Mr8JVnnahfugad2DRcVrB?format=xml)
without using api calls. How can I do this?

**Tags:** bitcoinj, utxo


---

## 2 answers

### Answer by username_1 on 2017-08-12. Score: 0

Bitcoinj is only a library, but there is an experimental full verification mode that would allow this. <https://bitcoinj.github.io/full-verification> It is important to note it is not intended for production use and almost certainly contains chain splitting bugs.


---

### Answer by username_2 on 2018-07-24. Score: 0

Try:

```
Map<Sha256Hash, Transaction> unspentTxs = wallet.getTransactionPool(WalletTransaction.Pool.UNSPENT);

```


---

