← Back to the archive
Bitcoin.onl > Archive > Bitcoin Forum > Re: Multiple Wallets, one computer
AuthorTopic: Re: Multiple Wallets, one computer
satoshiFounderSr. Member★★★★
Re: Multiple Wallets, one computer
« on: October 25, 2010, 04:53:53 PM UTC »

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)
Original: view the exact post on bitcointalk.org ↗Text compiled by the Satoshi Nakamoto Institute, used under CC BY-SA 4.0. Formatting by Bitcoin.onl.
© Bitcoin.onl · Home