[#wallet-PreselectedInput-GetScripts] = xref:wallet.adoc[wallet]::xref:wallet/PreselectedInput.adoc[PreselectedInput]::GetScripts :relfileprefix: ../../ :mrdocs: Retrieve both the scriptSig and the scriptWitness. == Synopsis Declared in `<wallet/coincontrol.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::pair<std::optional<CScript>, std::optional<CScriptWitness>> GetScripts() const; ---- == Return Value A pair holding the scriptSig and the scriptWitness, each set if provided. [.small]#Created with https://www.mrdocs.com[MrDocs]#