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

Set an input&apos;s weight&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
SetInputWeight(
    xref:COutPoint.adoc[COutPoint] const& outpoint,
    int64&lowbar;t weight);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *outpoint*
| The output whose input weight is being set&period;
| *weight*
| The input weight for spending the output&period;
|===


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