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

Set the previous output for this input&period; Only necessary if the input is expected to be an external input&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetTxOut(xref:CTxOut.adoc[CTxOut] const& txout);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *txout*
| The previous output being spent by this input&period;
|===


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