When I run dumpprivkey
from Bitcoin Core 0.21.1. I get the following error message:
error code: -4
error message:
This type of wallet does not support this command
I came across achow's explanation stating that
"Descriptor Wallets store Output Script Descriptors in the wallet and use these to generate the addresses that users can use. Legacy Wallets (the non-descriptor wallet type, and the only type of wallet previous versions would create) instead used private keys to generate addresses."
If dumprivkey
does not work, how can I get a private key from a descriptor wallet?