Bitcoin Forum

Bitcoin => BitcoinJ => Topic started by: gweedo on June 19, 2013, 06:29:15 AM



Title: BitcoinJ how do you get a transaction outputs?
Post by: gweedo on June 19, 2013, 06:29:15 AM
I am getting a bunch of transactions using getWalletTransactions (http://plan99.net/~mike/bitcoinj/0.9/com/google/bitcoin/core/Wallet.html#getWalletTransactions()) Then I am getting the outputs of that using the iterator to get each transaction then calling getOutputs, but that just gives me the ScriptPubKey. Can I change a setting to save the bitcoin address? Or can I get the output addresses another way?

I am trying to figure out the best way to get the balance of an address that I would control in my wallet.


*MODs can you move this if not in the right place, I really didn't know where to ask it*