Multiple Wallets, one computer (multiple accounts)
I want to have multiple “accounts” with unique balances and to send and receive coins on a per-account basis. The equiv. of having multiple wallets running at the same time.
It would help to simply list the balance for each ‘receiving address’ and to specify a ‘source’ address when sending coins.
I have the beginning of something like this. It’s mostly like what Gavin described.
Some more rpc interface:
move
I’m thinking a new function getaccountaddress instead of overloading getnewaddress:
getaccountaddress
Would these commands make it possible in simple cases to implement your website without needing a database of your own?
Here’s some pseudocode of how you would use the account based commands. It sure makes website integration a lot easier.
print "send to " + getaccountaddress(username) + " to fund your account"
print "balance: " + getbalance(username, 0)
print "available balance: " + getbalance(username, 6)
// if you make a sale, move the money out of their account
move(username, "", amount, 6)
// withdrawal
sendfrom(username, bitcoinaddress, amount, 6)