Bitcoin Forum
May 04, 2024, 06:33:23 PM *
News: Latest Bitcoin Core release: 27.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Descriptor wallet importmulti Core 0.21  (Read 68 times)
Gabrics (OP)
Full Member
***
Offline Offline

Activity: 183
Merit: 112

Just digging around


View Profile WWW
February 05, 2021, 12:29:54 PM
 #1

Hi,

We work with a ColdCard wallet and Bitcoin Core 0.21 setup.

Everything works fine with legacy wallet format, ColdCard exports an importmulti command and Core has the watch only addresses:
importmulti '[{"range": [0, 1000], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "wpkh([*hash*/84h/1h/0h]*tpub*/0/*)#*hash*", "internal": false}, {"range": [0, 1000], "timestamp": "now", "keypool": true, "watchonly": true, "desc": "wpkh([*hash*/84h/1h/0h]*tpub*../1/*)#*hash*", "internal": true}]'


We would like to move to Descriptor wallet in which case importmulti is not working.
If I just simply replace importmulti with importdescriptors it runs fine, but the wallet is not able to create/give any new address (get new address button is grayed out) getnewaddress returns "Error: This wallet has no available keys (code -4)".


Is there a way to import the xpub to a descriptor wallet (I tried to search, but no results so far) correctly?

Thanks
Gabor

PS:
Original tpubs and hashes were removed from commands.
1714847603
Hero Member
*
Offline Offline

Posts: 1714847603

View Profile Personal Message (Offline)

Ignore
1714847603
Reply with quote  #2

1714847603
Report to moderator
1714847603
Hero Member
*
Offline Offline

Posts: 1714847603

View Profile Personal Message (Offline)

Ignore
1714847603
Reply with quote  #2

1714847603
Report to moderator
1714847603
Hero Member
*
Offline Offline

Posts: 1714847603

View Profile Personal Message (Offline)

Ignore
1714847603
Reply with quote  #2

1714847603
Report to moderator
Remember that Bitcoin is still beta software. Don't put all of your money into BTC!
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
February 05, 2021, 06:18:27 PM
 #2

The help command is your friend.

Replace "keypool": true with "active": true

Gabrics (OP)
Full Member
***
Offline Offline

Activity: 183
Merit: 112

Just digging around


View Profile WWW
February 05, 2021, 06:53:54 PM
 #3

Indeed, that was it! Thank you. Should have seen it myself Sad
(I just assumed that if any parameter is unknown call would/should fail)


One more question I have:
Now the XPUB is imported with range 0-1000.
Do I understand it right, that the new descriptor wallet should be able to refill the addresspool as it has the XPUB?

achow101
Moderator
Legendary
*
Offline Offline

Activity: 3388
Merit: 6581


Just writing some code


View Profile WWW
February 06, 2021, 03:58:16 AM
Merited by Gabrics (1)
 #4

One more question I have:
Now the XPUB is imported with range 0-1000.
Do I understand it right, that the new descriptor wallet should be able to refill the addresspool as it has the XPUB?
Yes. It starts out with 0-1000, but will continue on after that in accordance with the -keypool startup option. The default is to maintain a pool of 1000.

Gabrics (OP)
Full Member
***
Offline Offline

Activity: 183
Merit: 112

Just digging around


View Profile WWW
February 06, 2021, 05:36:04 AM
 #5

Great, thank you for the help!
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!