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

Retrieve both the scriptSig and the scriptWitness&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::pair&lt;std::optional&lt;CScript&gt;, std::optional&lt;CScriptWitness&gt;&gt;
GetScripts() const;
----

== Return Value

A pair holding the scriptSig and the scriptWitness, each set if provided&period;


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