[#wallet-PreselectedInput-SetScriptWitness]
= xref:wallet.adoc[wallet]::xref:wallet/PreselectedInput.adoc[PreselectedInput]::SetScriptWitness
:relfileprefix: ../../
:mrdocs:

Set the scriptWitness for this input&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetScriptWitness(xref:CScriptWitness.adoc[CScriptWitness] const& script&lowbar;wit);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *script&lowbar;wit*
| The scriptWitness to use for this input&period;
|===


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