Bitcoin Core RPC cURL – importdescriptors failing on loaded pockets

0
61


I’m operating the next request to load a pockets.

curl --location 'consumer:password@umbrel.native:8332/pockets/test_multisig"' 
--header 'Content material-Kind: textual content/plain' 
--data '{
    "jsonrpc": "2.0",
    "technique":"loadwallet",
    "params": ["test_multisig"],
    "id": "test_multisig_wallet_load"
}'

It returns…

{"end result":null,"error":{"code":-35,"message":"Pockets "test_multisig" is already loaded."},"id":"test_multisig_wallet_load"}

Nevertheless I then run this precise request, and obtain an error as if the pockets just isn’t loaded.

curl --location 'consumer:password@umbrel.native:8332/pockets/test_multisig"' 
--header 'Content material-Kind: textual content/plain' 
--data '{
    "jsonrpc": "2.0",
    "technique":"importdescriptors",
    "params":{
        "requests":[{
        "desc":"pkh(cSQPHDBwXGjVzWRqAHm6zfvQhaTuj1f2bFH58h55ghbjtFwvmeXR)",
        "active": false,
        "range": 20,
        "next_index": 0,
        "timestamp": "now", 
        "internal": false,
        "label": "test_multisig_wallet"
        }]
    }
}'

Error…
{"end result":null,"error":{"code":-18,"message":"Requested pockets doesn't exist or just isn't loaded"},"id":null}

How can I import descriptors right into a pockets so the pockets has a sequence of addresses?

LEAVE A REPLY

Please enter your comment!
Please enter your name here