3
1
Let's say I have 50 addresses which have an average of 0.5 BTC. Some have two or three times the average balance, while others have less than 0.1% of the average. Many times per day an address is selected to either receive or send some amount of coins, fueling the inequality.
What's an efficient, cost-effective method of rebalancing a large number of addresses such that each contains roughly the average balance?
(Assume the algorithm to select a keypair with which to transact is fixed and cannot be modified for argument sake.)
I am wondering whether this is an XY-Problem. At least it makes me curious, why you would want to do that.
– Murch – 2014-08-19T19:02:16.513I don't believe it's an XY problem. The reason is that I would like to keep coins spread across 50 addresses roughly evenly, and sometimes I might transact with a given address without checking its balance in relation to the other 50 for performance reasons. – Chris Cashwell – 2014-08-19T19:04:12.707
@Chris You still haven't answered the base question: Why do you want to keep your balance spread across 50 addresses instead of any other way (e.g. in one wallet, in whatever addresses they happen to go in)? – Tim S. – 2014-08-19T20:18:26.767
@TimS. I don't really see how the reasoning is relevant. The point here is that I have N addresses and want to occasionally make their balances roughly equally. Assume there's a good reason why without needing to understand that specific reason. – Chris Cashwell – 2014-08-19T20:21:50.567
Better yet, assume I don't know the reason why many addresses are desirable. Assume that the parameters are set and I'm simply looking for a solution within those parameters. – Chris Cashwell – 2014-08-19T20:24:44.110