How to get unspent bitcoins using bitcoinj

0

I'm trying to get unspent transaction using bitcoinj like here without using api calls. How can I do this?

sano143

Posted 2017-08-12T04:21:39.160

Reputation: 33

Answers

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.

m1xolyd1an

Posted 2017-08-12T04:21:39.160

Reputation: 3 356

0

Try:

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

Ander Acosta

Posted 2017-08-12T04:21:39.160

Reputation: 372