Bitcoin Forum

Bitcoin => BitcoinJ => Topic started by: jonas.schnelli on October 14, 2013, 02:11:23 PM



Title: detect insufficient funds while creating a tx
Post by: jonas.schnelli on October 14, 2013, 02:11:23 PM
When completing a TX with wallet.completeTx:
how do i detect the type of the error?
I'd like to distinct between dust, etc. errors and insufficient funds error.

Any chance to do this?


Title: Re: detect insufficient funds while creating a tx
Post by: Andreas Schildbach on October 14, 2013, 09:18:16 PM
Currently there is no proper way, except for manually checking the balance.

See issue http://code.google.com/p/bitcoinj/issues/detail?id=425.


Title: Re: detect insufficient funds while creating a tx
Post by: Mike Hearn on October 15, 2013, 10:11:22 AM
Yes, that needs to be fixed.