<p>I couldn't understand it very well in the places I looked and in the documentation I read, and it would take about 1 month for me to have bitcoins to test, I thought it was better to ask here.</p>
<p>I will need to have multiple wallets, so I could understand the correct way to work with them would be using &quot;loadwallet&quot; before generating addresses and doing any action on the wallet, and if I were going to use another wallet I should do an &quot;unloadwallet&quot; and another &quot;loadwallet &quot; to continue.</p>
<p>But in a description I saw, when leaving the wallet unloaded the &quot;walletnotify&quot; would not work correctly until the &quot;loadwallet&quot; was used again.</p>
<p>So what would be the correct way to use multiwallets and have actions targeted to specific wallets?</p>

CC BY-SA 4.0
2021-11-28T02:40:51.877Z
You can load multiple wallets simultaneously; no need to load and unload every time you're going to use a wallet for something.
Pieter Wuille
CC BY-SA 4.0
2021-11-28T02:52:25.777Z
But, for example, when I call "getnewaddress", how can I target this to a specific wallet?
Jean Kássio
CC BY-SA 4.0
2021-11-28T03:43:34.593Z
If you use `bitcoin-cli`, you specify the subject wallet with the `-rpcwallet=` command line argument. If you're using JSON-RPC directly, there is a separate URI for every wallet.
Pieter Wuille
CC BY-SA 4.0
2021-11-28T04:23:27.060Z
NICE, thanks so much, i understand now, its work!
Jean Kássio
<wallet><wallet-notify>
"unloadwallet" and "notifywallet", work together?
Jean Kássio
# "unloadwallet" and "notifywallet", work together?

(Asked by: username_0 on 2021-11-28)

I couldn't understand it very well in the places I looked and in the documentation I read, and it would take about 1 month for me to have bitcoins to test, I thought it was better to ask here.

I will need to have multiple wallets, so I could understand the correct way to work with them would be using "loadwallet" before generating addresses and doing any action on the wallet, and if I were going to use another wallet I should do an "unloadwallet" and another "loadwallet " to continue.

But in a description I saw, when leaving the wallet unloaded the "walletnotify" would not work correctly until the "loadwallet" was used again.

So what would be the correct way to use multiwallets and have actions targeted to specific wallets?

**Tags:** wallet, wallet-notify

> **Comments:**
> **username_1**: You can load multiple wallets simultaneously; no need to load and unload every time you're going to use a wallet for something.  
> **username_0**: But, for example, when I call "getnewaddress", how can I target this to a specific wallet?  
> **username_1**: If you use `bitcoin-cli`, you specify the subject wallet with the `-rpcwallet=` command line argument. If you're using JSON-RPC directly, there is a separate URI for every wallet.  
> **username_0**: NICE, thanks so much, i understand now, its work!  

---

## 0 answers

