Bitcoin Forum
May 14, 2024, 05:46:53 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Accounts in Bitcoin?  (Read 951 times)
drawingthesun (OP)
Legendary
*
Offline Offline

Activity: 1176
Merit: 1015


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.

1715665613
Hero Member
*
Offline Offline

Posts: 1715665613

View Profile Personal Message (Offline)

Ignore
1715665613
Reply with quote  #2

1715665613
Report to moderator
1715665613
Hero Member
*
Offline Offline

Posts: 1715665613

View Profile Personal Message (Offline)

Ignore
1715665613
Reply with quote  #2

1715665613
Report to moderator
1715665613
Hero Member
*
Offline Offline

Posts: 1715665613

View Profile Personal Message (Offline)

Ignore
1715665613
Reply with quote  #2

1715665613
Report to moderator
"With e-currency based on cryptographic proof, without the need to trust a third party middleman, money can be secure and transactions effortless." -- Satoshi
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
itod
Legendary
*
Offline Offline

Activity: 1974
Merit: 1076


^ 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:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!