Bitcoin Forum
September 27, 2018, 10:25:52 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: Bitcoind & MySQL Account Question  (Read 736 times)
WatchTheif
Newbie
*
Offline Offline

Activity: 7
Merit: 0


View Profile
April 07, 2014, 05:31:29 PM
 #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.
1538087152
Hero Member
*
Offline Offline

Posts: 1538087152

View Profile Personal Message (Offline)

Ignore
1538087152
Reply with quote  #2

1538087152
Report to moderator
1538087152
Hero Member
*
Offline Offline

Posts: 1538087152

View Profile Personal Message (Offline)

Ignore
1538087152
Reply with quote  #2

1538087152
Report to moderator
1538087152
Hero Member
*
Offline Offline

Posts: 1538087152

View Profile Personal Message (Offline)

Ignore
1538087152
Reply with quote  #2

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

Posts: 1538087152

View Profile Personal Message (Offline)

Ignore
1538087152
Reply with quote  #2

1538087152
Report to moderator
WatchTheif
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:  

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!