I'm very new to Bitcoin development, using its RPC API.
I created a wallet using
{
"method": "createwallet",
"params": {
"wallet_name": "/wallets/walletA"
}
}
Now I want to get info about this wallet. I try to use the getwalletinfo
command.
But it seems you can't specify the wallet name/path when running this command? You have to "load" the wallet first (using loadwallet
)?
This is the part I do not understand. Let's say I have created 10 wallets and I try to run a getwalletinfo
command in a multithreaded environment... How can I make sure I target the right wallet? Do I really have to send a loadwallet
request to specify the wallet I want to work on, before getting info about it?
What will occure if I want to get information about "walletA" so I run loadwallet walletA
, but before I can run getwalletinfo
to get its info, a loadwallet walletB
request is made?