how to generate a bitcoin address for each user that registers

0

I'm working on a marketplace type website and i want a bitcoin address to be generated for each user that registers an account. this needs to be done in php with no javascript

James

Posted 2017-07-29T02:07:27.753

Reputation: 3

Answers

0

If you're running your own Bitcoind for JSON RPC calls via PHP then you can generate new address for each of your customers by this JSON Call command in PHP like this:

echo $wallet->getnewaddress();

This will echo the new address and stores it in wallet variable. Please refer to this doc https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list

I hope this helps.

Thanks

Shreyal Rana

Posted 2017-07-29T02:07:27.753

Reputation: 26