Bitcoin
Bitcoin Core RPC cURL – Fetch description failed on loaded wallet
![](https://cdn.sstatic.net/Sites/bitcoin/Img/apple-touch-icon@2.png?v=b4864ba760f1)
To load the wallet we are executing the following request:
curl --location 'user:(email protected):8332/wallet/test_multisig"' \
--header 'Content-Type: text/plain' \
--data '
"jsonrpc": "2.0",
"method":"loadwallet",
"params": ("test_multisig"),
"id": "test_multisig_wallet_load"
'
Coming back…
"result":null,"error":"code":-35,"message":"Wallet \"test_multisig\" is already loaded.","id":"test_multisig_wallet_load"
However, when I run this exact request, I get an error as if the wallet is not loaded.
curl --location 'user:(email protected):8332/wallet/test_multisig"' \
--header 'Content-Type: text/plain' \
--data '
"jsonrpc": "2.0",
"method":"importdescriptors",
"params":
"requests":(
"desc":"pkh(cSQPHDBwXGjVzWRqAHm6zfvQhaTuj1f2bFH58h55ghbjtFwvmeXR)",
"active": false,
"range": 20,
"next_index": 0,
"timestamp": "now",
"internal": false,
"label": "test_multisig_wallet"
)
'
error…
"result":null,"error":"code":-18,"message":"Requested wallet does not exist or is not loaded","id":null
How do I get the descriptor into my wallet so that my wallet has a set of addresses?