<p>The JSON-RPC has a method called <code>getnewaddress</code> 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 <code>getaccountaddress</code> with the user ID or the username. You can then use the <code>getbalance &lt;user&gt;</code> call to check its current balance. However, there are some <a href="https://en.bitcoin.it/wiki/Accounts_explained#Account_Weaknesses" rel="nofollow">caveats</a> when grouping addresses with accounts. </p>

CC BY-SA 3.0
2016-04-18T21:47:21.490Z
thx bro. Can u see my other problem? 
http://bitcoin.stackexchange.com/questions/43775/json-rpc-connection-problem
Cihan Sancak
CC BY-SA 3.0
2016-04-17T20:25:21.370Z
2016-04-17T20:25:21.370Z
cdecker
<p>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.</p>

<p>I want, Unique bitcoin address for every user? How? </p>

<bitcoind><wallet><address><daemon>
Generate Unique address for each users?
Cihan Sancak
# Generate Unique address for each users?

(Asked by: username_0 on 2016-04-17)

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?

**Tags:** bitcoind, wallet, address, daemon


---

## 1 answers

### Answer by username_1 on 2016-04-17. Score: 0 | Accepted answer

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`  call to check its current balance. However, there are some [caveats](https://en.bitcoin.it/wiki/Accounts_explained#Account_Weaknesses) when grouping addresses with accounts.

> **Comments:**
> **username_0**: thx bro. Can u see my other problem?  http://bitcoin.stackexchange.com/questions/43775/json-rpc-connection-problem  

---

