<p>It returns an address you can use, not merely some useless random number.</p>
<p>It generates a new pair of public and private keys, stores those keys in your wallet and generates the address from the public key.</p>

CC BY-SA 4.0
2022-04-05T08:19:17.367Z
2022-04-05T08:19:17.367Z
RedGrittyBrick
<p>The address generated by <code>getnewaddress</code> RPC is associated to a wallet that the user possesses or is it a random address not necessarily belonging to user ?</p>

<json-rpc>
What does getnewaddress return
Animesh Bilthare
# What does getnewaddress return

(Asked by: username_0 on 2022-04-05)

The address generated by `getnewaddress` RPC is associated to a wallet that the user possesses or is it a random address not necessarily belonging to user ?

**Tags:** json-rpc


---

## 1 answers

### Answer by username_1 on 2022-04-05. Score: 1 | Accepted answer

It returns an address you can use, not merely some useless random number.

It generates a new pair of public and private keys, stores those keys in your wallet and generates the address from the public key.


---

