4
1
I have some bitcoins in an old bitcoin-core wallet and would like to transfer all of them to a new BIP32 wallet. I tried doing sendtoaddress with subtractfeefromamount=true, but bitcoin transferred all but 0.0005BTC to the new address (I suspect some rounding issue when calculating the fee and amount to send). So now I have an address with 0.0005BTC (plus some other addresses with a larger amount). How can I reliably transfer all funds so that all the addresses in the old wallet have zero balance?
Furthermore, is there a way to verify that all addresses for which I have the private key have a zero balance?
If I manually create a transaction, is the whole difference between input and output treated as the transaction fees (automatically, by virtue of there being a difference)? – wereHamster – 2016-11-23T19:05:12.093
1Yes it is. If there is no difference, it would be treated like a no fee transaction, and since it involves a lot of inputs in your case, the transaction size would be larger(because it depends on the amount of bytes as a standard, you can search for it) and would not be mined. However 0.0001 BTC is an average which would get your transaction mined (as per my experience) – Shabahat M. Ayubi – 2016-11-23T19:41:13.257