Bitcoin Forum
May 26, 2024, 07:49:37 AM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Bitcoind & MySQL Account Question  (Read 832 times)
WatchTheif (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 07, 2014, 05:31:29 PM
Last edit: April 08, 2014, 05:28:29 PM by WatchTheif
 #1

What is a good way to manage multiple accounts using bitcoind's API and an external DB like MySQL?

Should it work something like this:
1. New user signs up, account address is generated with bitcoind for that account
2. Set the new receiving addresses account, with bitcoind's setaccount, to the new accounts id
3. Database the new account's receiving address, in my MySQL database, linked to that new accounts id
4. Account balances are kept updated in the MySQL database with bitcoind's walletnotify and, blocknotify
5. When an account withdraws funds, use contrib/spendfrom code to send the amount from that accounts receiving address to the sendto address the account requests

Also, Is the bitcoind's listunspent resource heavy on my server?
Is walletnotify and blocknotify reliable for keeping my accounts DB accurately updated?


Any guidance on this would be much appreciated.
WatchTheif (OP)
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 09, 2014, 05:42:53 PM
 #2

Well after no help on this form and a tone of searching I found a great post about this issue, broadly speaking.

For all the noobs like my self who need answers to ruffly this question, here is a good post.

This is the link that I found:
http://bitcoin.stackexchange.com/questions/21153/bitcoin-accounts-feature-is-it-practical-or-scalable



Cheers.
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!