Bitcoin Forum

Bitcoin => Development & Technical Discussion => Topic started by: drawingthesun on September 05, 2014, 05:58:16 PM



Title: Accounts in Bitcoin?
Post by: drawingthesun on September 05, 2014, 05:58:16 PM
Hey, did anything regarding accounts ever get added into bitcoin?


Some sample pseudocode using the new Accounts based commands in 0.3.18.

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 from their account to your "" account
if (move(username, "", amount, 6, "purchased item"))
    SendTheGoods()

// withdrawal
sendfrom(username, bitcoinaddress, amount, 6, "withdrawal by user")

You can use listtransactions(username) to show them a list of their recent transactions.



Title: Re: Accounts in Bitcoin?
Post by: itod on September 07, 2014, 12:29:36 PM
I think you are looking for this info:

https://en.bitcoin.it/wiki/Accounts_explained (https://en.bitcoin.it/wiki/Accounts_explained)