I have PHP Based Web Bitcoin Wallet on localhost. I use simple Login system and basic bitcoin Json-RPC. In fact, everything is runing clearly, but my Bitcoin daemon giving same Bitcoin address to all users.

I want, Unique bitcoin address for every user? How?

1 Answer 1


The JSON-RPC has a method called getnewaddress that will generate a new private-/public-keypair and return it to the caller. You can use this to generate a new address for each user. In order to track the balances of users I'd suggest grouping a user's addresses in an account associated with the user by calling getaccountaddress with the user ID or the username. You can then use the getbalance <user> call to check its current balance. However, there are some caveats when grouping addresses with accounts.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.