Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How do we retrieve the xpub and the private key (for signature) of a given path (m/87h/0h/0h, for example) for legacy and descriptor wallets in Bitcoin Core?
There is no xpub in legacy wallets: https://bitcoin.stackexchange.com/a/107918/, use dumpwallet for private keys.
listdescriptors can be used to get xpub and xprv for descriptor wallets
Required, but never shown