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

Set the weight for this input&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetInputWeight(int64&lowbar;t weight);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *weight*
| The input weight for spending this input&period;
|===


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