Title: Generating a bitcoin wallet address for each user Post by: mr_random on April 22, 2013, 08:42:03 PM 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 Title: Re: Generating a bitcoin wallet address for each user Post by: grue on April 22, 2013, 09:06:50 PM 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).
Title: Re: Generating a bitcoin wallet address for each user Post by: mr_random on April 22, 2013, 09:59:12 PM 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? :) Title: Re: Generating a bitcoin wallet address for each user Post by: w1R903 on April 22, 2013, 10:20:50 PM 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? :) 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. Title: Re: Generating a bitcoin wallet address for each user Post by: mr_random on April 23, 2013, 06:37:50 PM 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? :) 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 :D |