Bitcoin Forum
September 27, 2018, 11:23:48 PM *
News: ♦♦ New info! Bitcoin Core users absolutely must upgrade to previously-announced 0.16.3 [Torrent]. All Bitcoin users should temporarily trust confirmations slightly less. More info.
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Accounts in Bitcoin?  (Read 871 times)
drawingthesun
Legendary
*
Offline Offline

Activity: 1120
Merit: 1000


View Profile
September 05, 2014, 05: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.

Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1538090628
Hero Member
*
Offline Offline

Posts: 1538090628

View Profile Personal Message (Offline)

Ignore
1538090628
Reply with quote  #2

1538090628
Report to moderator
itod
Legendary
*
Offline Offline

Activity: 1330
Merit: 1013


^ Will code for Bitcoins


View Profile
September 07, 2014, 12:29:36 PM
 #2

I think you are looking for this info:

https://en.bitcoin.it/wiki/Accounts_explained
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!