Bitcoin Forum
November 12, 2025, 07:34:29 AM *
News: Pumpkin contest voting
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: listdescriptor and importdescriptor  (Read 67 times)
sampei7777 (OP)
Member
**
Offline Offline

Activity: 93
Merit: 59


View Profile WWW
November 10, 2025, 05:05:28 PM
Merited by TryNinja (1)
 #1

Hi, just a question.

If I do

Code:
bitcoin-cli listdescriptors true

and than i do

Code:
bitcoin-cli importdescriptors

on previously exported file on a new installatio/machine, will I have the some funds and address of original wallets?

i.e. does listdescriptors true and importdescriptor the same thing that once did dumpprivkey and importprivkey?

Thanks to all


Thanks

ByteStamp
achow101
Moderator
Legendary
*
expert
Offline Offline

Activity: 3822
Merit: 7512


Just writing some code


View Profile WWW
November 10, 2025, 05:19:07 PM
Merited by TryNinja (1), satscraper (1)
 #2

Yes, after a rescan

TokenTikas
Member
**
Offline Offline

Activity: 84
Merit: 27


View Profile
November 11, 2025, 04:55:12 AM
 #3

If the exported file contains the private key then when you import it to a new machine, you will get your original wallet and funds.

If you only have the public key, you will only be able to view the addresses, not spend the funds.
satscraper
Legendary
*
Offline Offline

Activity: 1274
Merit: 2279



View Profile
November 11, 2025, 09:36:41 AM
 #4

If the exported file contains the private key then when you import it to a new machine, you will get your original wallet and funds.

If you only have the public key, you will only be able to view the addresses, not spend the funds.

If you set "true" to private arguments of listdescriptors command then private keys are also exported, and after importing relevant discriptors you will be able to spend funds. So, achow101 response has covered your question. In modern wallet architecture listdescriptors true and importdescriptors act as replacements for the dumpprivkey and importprivkey commands used in legacy wallets.



▄▄███████████████████▄▄
▄███████████████████████▄
████████████████████████
█████████████████████████
████████████████████████
████████████▀██████▀████
████████████████████████
█████████▄▄▄▄███████████
██████████▄▄▄████████████
████████████████████████
████████████████▀▀███████
▀███████████████████████▀
▀▀███████████████████▀▀
 
 EARNBET 
██
██
██
██
██
██
██
██
██
██
██
██
██
███████▄▄███████████
████▄██████████████████
██▀▀███████████████▀▀███
▄████████████████████████
▄▄████████▀▀▀▀▀████████▄▄██
███████████████████████████
█████████▌██▀████████████
███████████████████████████
▀▀███████▄▄▄▄▄█████████▀▀██
▀█████████████████████▀██
██▄▄███████████████▄▄███
████▀██████████████████
███████▀▀███████████
██
██
██
██
██
██
██
██
██
██
██
██
██


▄▄▄
▄▄▄███████▐███▌███████▄▄▄
█████████████████████████
▀████▄▄▄███████▄▄▄████▀
█████████████████████
▐███████████████████▌
███████████████████
███████████████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀

 King of The Castle 
 $200,000 in prizes
██
██
██
██
██
██
██
██
██
██
██
██
██

 62.5% 

 
RAKEBACK
BONUS
Forsyth Jones
Legendary
*
Offline Offline

Activity: 1708
Merit: 1730


I love Bitcoin!


View Profile WWW
November 11, 2025, 06:09:45 PM
 #5

Hi, just a question.

If I do

Code:
bitcoin-cli listdescriptors true

and than i do

Code:
bitcoin-cli importdescriptors

on previously exported file on a new installatio/machine, will I have the some funds and address of original wallets?

i.e. does listdescriptors true and importdescriptor the same thing that once did dumpprivkey and importprivkey?

Thanks to all
In this post you will find instructions on how to import an xpriv according to its script type (address): How to import an xpriv to a descriptor wallet in bitcoin core?

To import individual WIFI private keys, the concept is the same, i opened this thread: [HOW-TO] Import privkeys into a Bitcoin Core descriptor wallet

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!