Bitcoin Forum
December 15, 2018, 03:53:24 AM *
News: Latest Bitcoin Core release: 0.17.0 [Torrent].
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Generating a bitcoin wallet address for each user  (Read 999 times)
mr_random
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000

Nothing...


View Profile
April 22, 2013, 08:42:03 PM
 #1

I am building a site and I want each user to have a unique wallet address.

I understand I can use bitcoind for this. Say I have one thousand users, how do I generate 1000 addresses that I can monitor and send bitcoins from? Will the server be able to monitor all these 1000 addresses at once?

I am a php developer so I am familiar with certain aspects of web design.

Many thanks
1544846004
Hero Member
*
Offline Offline

Posts: 1544846004

View Profile Personal Message (Offline)

Ignore
1544846004
Reply with quote  #2

1544846004
Report to moderator
1544846004
Hero Member
*
Offline Offline

Posts: 1544846004

View Profile Personal Message (Offline)

Ignore
1544846004
Reply with quote  #2

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

Posts: 1544846004

View Profile Personal Message (Offline)

Ignore
1544846004
Reply with quote  #2

1544846004
Report to moderator
grue
Legendary
*
Offline Offline

Activity: 2058
Merit: 1140



View Profile
April 22, 2013, 09:06:50 PM
 #2

to monitor the balance of each address, either query bitcoind for the balance of the address, or query a third party api (blockexplorer, blockchain.info).

It is pitch black. You are likely to be eaten by a grue.

Adblock for annoying signature ads | Enhanced Merit UI
mr_random
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000

Nothing...


View Profile
April 22, 2013, 09:59:12 PM
 #3

to monitor the balance of each address, either query bitcoind for the balance of the address, or query a third party api (blockexplorer, blockchain.info).

So I would keep polling bitcoind over and over to keep scanning for deposits to those addresses?  Smiley
w1R903
Full Member
***
Offline Offline

Activity: 218
Merit: 100


View Profile
April 22, 2013, 10:20:50 PM
 #4

to monitor the balance of each address, either query bitcoind for the balance of the address, or query a third party api (blockexplorer, blockchain.info).

So I would keep polling bitcoind over and over to keep scanning for deposits to those addresses?  Smiley

You don't have to poll.  You can start up bitcoind with the switch '-blocknotify='<cmd>' and put whatever command you want to run in the place of <cmd>, for example a shell script or python script that asks for the balances of the addresses you are tracking.  It will only notify upon each additional block confirmation.

4096R/F5EA0017
mr_random
Hero Member
*****
Offline Offline

Activity: 910
Merit: 1000

Nothing...


View Profile
April 23, 2013, 06:37:50 PM
 #5

to monitor the balance of each address, either query bitcoind for the balance of the address, or query a third party api (blockexplorer, blockchain.info).

So I would keep polling bitcoind over and over to keep scanning for deposits to those addresses?  Smiley

You don't have to poll.  You can start up bitcoind with the switch '-blocknotify='<cmd>' and put whatever command you want to run in the place of <cmd>, for example a shell script or python script that asks for the balances of the addresses you are tracking.  It will only notify upon each additional block confirmation.

Awesome! Thank you  Cheesy
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!