[#wallet-LegacyDataSPKM-GetWatchPubKey] = xref:wallet.adoc[wallet]::xref:wallet/LegacyDataSPKM.adoc[LegacyDataSPKM]::GetWatchPubKey :relfileprefix: ../../ :mrdocs: Fetches a pubkey from mapWatchKeys if it exists there == Synopsis Declared in `<wallet/scriptpubkeyman.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool GetWatchPubKey( xref:CKeyID.adoc[CKeyID] const& address, xref:CPubKey.adoc[CPubKey]& pubkey_out) const; ---- == Return Value true if a matching public key was found. == Parameters [cols="1,4"] |=== | Name| Description | *address* | The key id to look up. | *pubkey_out* | Filled with the found public key. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#