Author

Topic: Accounts in Bitcoin? (Read 978 times)

legendary
Activity: 1974
Merit: 1077
Honey badger just does not care
September 07, 2014, 07:29:36 AM
#2
I think you are looking for this info:

https://en.bitcoin.it/wiki/Accounts_explained
legendary
Activity: 1176
Merit: 1015
September 05, 2014, 12:58:16 PM
#1
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.

Jump to: