[#wallet-WalletBatch-WriteWatchOnly] = xref:wallet.adoc[wallet]::xref:wallet/WalletBatch.adoc[WalletBatch]::WriteWatchOnly :relfileprefix: ../../ :mrdocs: Writes a watch‐only script and its metadata. == Synopsis Declared in `<wallet/walletdb.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool WriteWatchOnly( xref:CScript.adoc[CScript] const& script, xref:wallet/CKeyMetadata.adoc[CKeyMetadata] const& keymeta); ---- == Return Value true if the record was written. == Parameters [cols="1,4"] |=== | Name| Description | *script* | The script to watch. | *keymeta* | The metadata to store. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#