Retrieve the particular key if it is available. Returns nullopt if the key is not in the wallet, or if the wallet is locked.
Synopsis
Declared in <wallet/scriptpubkeyman.h>
[[requires_capability(0x7ff371803bb8), requires_capability(0x7ff365631018), requires_capability(0x7ff35d350b98), requires_capability(0x7ff365aaab08), requires_capability(0x7ff379b45f18), requires_capability(0x7ff37e1e25c8)]]
std::optional<CKey>
GetKey(CKeyID const& keyid) const;
Return Value
The private key, or nullopt if it is unavailable or the wallet is locked.
Parameters
Name |
Description |
keyid |
The key id to retrieve. |
Created with MrDocs