Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: kayrice on September 18, 2012, 05:25:55 PM



Title: Prepare Wallet
Post by: kayrice on September 18, 2012, 05:25:55 PM
I make bets within a short period of time and I need to ensure that I can spend my wallet in better "increments". What happens right now is the wallet available balance can go down drastically after spending just 0.1 BTC which can affects my bankroll used during betting.

How can I prepare my wallet ahead of time so that I am less likely to be locked by small transactions?


Title: Re: Prepare Wallet
Post by: DannyHamilton on September 18, 2012, 05:37:48 PM
I'm going to take a guess here. I'm sure someone will correct me if I'm wrong.

It would seem that you could decide ahead of time what increments you want to spend/bet in.  Then you could divide your total balance by this increment.  This would give you a number of addresses that you could use to split up the balance such that you could spend from each address individually without breaking up the balance at the other addresses into smaller pieces.  Then you could create that number of addresses, and send your entire balance in a single transaction split equally across each of the newly created receiving addresses.  This should create a single output to each address that represents the full amount at that address.  Then whenever you send/bet from one of those addresses, you would spend/bet the full amount at the address (the entire amount being represented as a single output that could be spent all at once), leaving the rest of the addresses available for future spends/bets.  Of course depending on what you are playing and where you are playing it, you could find that your winnings are received in multiple small outputs, so you'd end up repeating this process regularly to keep everything consolidated.


Title: Re: Prepare Wallet
Post by: kjj on September 18, 2012, 08:19:34 PM
I'm not sure that this will ever make it into the main client.  It just doesn't seem like a pressing issue for most people.

I'm working on a script to clean up my personal wallet, and it could maybe be adapted to something like this.


Title: Re: Prepare Wallet
Post by: kayrice on September 18, 2012, 10:49:04 PM
Thanks guys. Im not looking to change or use the original client, but actually how can I accomplish this? Currently I'm using MultiBit and have resorted to sending myself arbitrary amounts around the division points I think I need, but I have no way of seeing how my wallet is broken up currently. Is there a RPC or command line tool that lets me see how my wallet is fragmented?



Title: Re: Prepare Wallet
Post by: Pieter Wuille on September 18, 2012, 11:23:42 PM
Note that the reference client does allow you to spend change immediately (without confirmations), while Multibit doesn't (afaik).


Title: Re: Prepare Wallet
Post by: Stephen Gornick on September 19, 2012, 01:19:20 AM
Currently I'm using MultiBit and have resorted to sending myself arbitrary amounts around the division points I think I need, but I have no way of seeing how my wallet is broken up currently.

To split your wallet so that you have many inputs with a smaller granularity, there is BTCRelay:

 - http://btcrelay.com
 - http://bitcointalk.org/index.php?topic=60603.0

How that could be used is when sending the wager, give your BTCRelay address as the "custom Bitcoin address" payout method, and then have BTCRelay split that ten ways (or whatever you want) to addresses in your own wallet.