0

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

0

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.

1

Your Answer

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

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