27
11
Important parts in bold, for those who don't want to read the detail!
I've received lots of tiny transactions, in amounts sometimes as low as 0.000003BTC. Even though I've also received (relatively) larger amounts, I'm worried that when I want to spend my bitcoins the transaction fees may be very high thanks to the large number of "input" transactions needed to make up the output transaction.
As I understand it, the network has an algorithm for determining minimum transaction fees, and the relationship between number of inputs and required transaction fee is non-linear. This means there is likely some optimum way to combine my inputs. This has already been discussed here and here, but neither question asks how it can be done, and how bad the consequences can be.
It might be best to somehow include as many tiny inputs with a larger input each time I spend a moderate amount, or perhaps it would be better to somehow combine all the tiny inputs in individual batches of some optimum size and send them to myself to prevent future problems.
If I were to combine the tiny amounts, I'd be happy to wait for the newly combined bitcoins to age, so additional fees which would be required by spending young bitcoins won't be a problem.
In most, but not all, cases, my tiny amounts have been received to a dedicated tony-amount address.
For the sake of the question, let's assume I've received 1000 tiny transactions of 0.001BTC each, and another 100 transactions of 0.1BTC each, all in the same wallet. This would give a total balance of 11BTC. Assume all amounts were received 6 months ago.
If I wanted to spend the entire 11BTC at once (with 1100 transaction inputs), how high might the fee be?
If I only spent 1BTC at a time, how high might the fee be?
How can I actually combine the tiny amounts without affecting the larger ones?
I'm running the standard (Satoshi) client, but other clients could be an option.
You may update your answer with the fact that a fork of the original client done by cozz (https://github.com/cozz/bitcoin) does allow to pick specific inputs.
– liori – 2013-04-08T15:01:09.370Not sure why this old question popped up on the rss stream but might as well add the tidbit that bitcoin-qt these days also allows you to pick inputs manually. It has for a while actually. – Jannes – 2015-04-30T14:57:15.823
I am in this same basic boat except that 100% of my transactions (around 200) are tiny like this, from a mining pool. I want to transfer everything over to an exchange (Kraken) but the fees will be greater than 50% of the total! Best case if I opt for the slowest confirmation is about 1/3 of the total in fees. I really don't understand this answer enough to know what to do with it, I'm on Mac but don't know if there is actually an easy way to solve this issue. Does this warrant a new question? Concerned it would just get closed as a dupe. – Jonathan van Clute – 2017-05-05T16:48:02.453
I haven't kept up to date on all these details. Since this information is nearing 5 years old, I would suggest asking a new question. It looks like Eligius is still around and mining low-fee transactions. But a lot of things could have changed that I'm not aware of. – scott.squires – 2017-05-06T17:25:51.827
Thanks for your answer! Especially for the mention of the waiver for the min transaction fee; I didn't know that – Highly Irregular – 2012-12-05T20:25:51.067