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?

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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