Bitcoin Forum
December 16, 2017, 01:48:21 PM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: Generating a bitcoin wallet address for each user  (Read 988 times)
mr_random
Hero Member
*****
Offline Offline

Activity: 868



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

            ▄▄▄███████████▄▄▄
        ▄▄█████████████████████▄
      ▄██████████████████████████▄
    ▄█████████████████▀▀▀██████████
   █████████████████       ███████
  ██████▀▀▀████████   ███   ██████   █
 █████       ██████   ███   ██████   ██
 ████   ███   █████   ███   █████   ███
█████   ███   █████   ███    ████   ████
█████   ███   █████   ████   ████   ████
████    ███   ████   █████   ███   █████
████   ████   ████   █████   ███   █████
▀███   ████   ████   ██████       █████
 ███   █████   ███   ████████▄▄▄███████
  █   ██████   ███   █████████████████
      ███████       █████████████████
     ██████████▄▄▄█████████████████▀
     ▀███████████████████████████▀
       ▀▀██████████████████████▀
           ▀▀▀████████████▀▀▀



Worldcore
▄▄
██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
▀▀  ██
    ██
    ▄▄
    ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ▀▀
██   
Goat says: "Bitcoin is NOT Illegal in Thailand. There is no law against Bitcoin in Thailand!"
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction. Advertise here.
1513432101
Hero Member
*
Offline Offline

Posts: 1513432101

View Profile Personal Message (Offline)

Ignore
1513432101
Reply with quote  #2

1513432101
Report to moderator
1513432101
Hero Member
*
Offline Offline

Posts: 1513432101

View Profile Personal Message (Offline)

Ignore
1513432101
Reply with quote  #2

1513432101
Report to moderator
1513432101
Hero Member
*
Offline Offline

Posts: 1513432101

View Profile Personal Message (Offline)

Ignore
1513432101
Reply with quote  #2

1513432101
Report to moderator
grue
Global Moderator
Legendary
*
Offline Offline

Activity: 2044



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.

Tired of annoying signature ads? Ad block for signatures
mr_random
Hero Member
*****
Offline Offline

Activity: 868



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

            ▄▄▄███████████▄▄▄
        ▄▄█████████████████████▄
      ▄██████████████████████████▄
    ▄█████████████████▀▀▀██████████
   █████████████████       ███████
  ██████▀▀▀████████   ███   ██████   █
 █████       ██████   ███   ██████   ██
 ████   ███   █████   ███   █████   ███
█████   ███   █████   ███    ████   ████
█████   ███   █████   ████   ████   ████
████    ███   ████   █████   ███   █████
████   ████   ████   █████   ███   █████
▀███   ████   ████   ██████       █████
 ███   █████   ███   ████████▄▄▄███████
  █   ██████   ███   █████████████████
      ███████       █████████████████
     ██████████▄▄▄█████████████████▀
     ▀███████████████████████████▀
       ▀▀██████████████████████▀
           ▀▀▀████████████▀▀▀



Worldcore
▄▄
██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
▀▀  ██
    ██
    ▄▄
    ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ▀▀
██   
w1R903
Full Member
***
Offline Offline

Activity: 218


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



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

            ▄▄▄███████████▄▄▄
        ▄▄█████████████████████▄
      ▄██████████████████████████▄
    ▄█████████████████▀▀▀██████████
   █████████████████       ███████
  ██████▀▀▀████████   ███   ██████   █
 █████       ██████   ███   ██████   ██
 ████   ███   █████   ███   █████   ███
█████   ███   █████   ███    ████   ████
█████   ███   █████   ████   ████   ████
████    ███   ████   █████   ███   █████
████   ████   ████   █████   ███   █████
▀███   ████   ████   ██████       █████
 ███   █████   ███   ████████▄▄▄███████
  █   ██████   ███   █████████████████
      ███████       █████████████████
     ██████████▄▄▄█████████████████▀
     ▀███████████████████████████▀
       ▀▀██████████████████████▀
           ▀▀▀████████████▀▀▀



Worldcore
▄▄
██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
▀▀  ██
    ██
    ▄▄
    ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ██
██  ▀▀
██   
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!