Reconstruct the extended private key for an HD xpub. Returns nullopt when no descriptor has the private key, or the wallet is locked.
Declared in <wallet/wallet.h>
std::optional<CExtKey>
GetExtKey(CExtPubKey const& xpub) const;
The extended private key, or nullopt if unavailable.
| Name | Description |
|---|---|
| xpub | The extended public key to reconstruct the private key for. |