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

Loads metadata for a watch&hyphen;only script (used by LoadWallet)&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
void
LoadScriptMetadata(
    xref:CScriptID.adoc[CScriptID] const& script&lowbar;id,
    xref:wallet/CKeyMetadata.adoc[CKeyMetadata] const& metadata);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *script&lowbar;id*
| The script id the metadata belongs to&period;
| *metadata*
| The metadata to associate with the script&period;
|===


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