[#wallet-LegacyDataSPKM-HaveWatchOnly]
= xref:wallet.adoc[wallet]::xref:wallet/LegacyDataSPKM.adoc[LegacyDataSPKM]::HaveWatchOnly
:relfileprefix: ../../
:mrdocs:

Returns whether the watch&hyphen;only script is in the wallet

== Synopsis

Declared in `&lt;wallet&sol;scriptpubkeyman&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
HaveWatchOnly(xref:CScript.adoc[CScript] const& dest) const;
----

== Return Value

true if the script is watched&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *dest*
| The watch&hyphen;only script to look up&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
