Obs.. I need to import a private key format 5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss but when I try it on BTC core shows error ''BTC legacy only''.
Hmm, that error... could it be "
Only legacy wallets are supported by this command"? Because, there's nothing else exactly like that.
If so; Bitcoin Core's new "
descriptor wallet" doesn't allow
importprivkey command, use
importdescriptor instead.
Instead, create a "
pkh" descriptor with that uncompressed WIF private key, get its "
checksum", then import it.
Example:
Create a descriptor:
pkh(5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss)
Get its checksum:
getdescriptorinfo "pkh(5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss)"
Result: "checksum": "pcxrjydy",
Import it, append the checksum:
importdescriptors "[{\"desc\": \"pkh(5KYZdUEo39z3FPrtuX2QbbwGnNP5zTd7yyr2SC1j299sBCnWjss)#pcxrjydy\",\"label\": \"test_import\",\"timestamp\": 0}]"
You can also import "pk()" descripto if you think you own P2PK outputs.
------->-snip-<-------
Use your signature space to include this to your posts instead of posting it at the bottom of each of your topics.
To get there, click "
PROFILE->Forum Profile Information".