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

Retrieve the input weight for this input&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::optional&lt;int64&lowbar;t&gt;
GetInputWeight() const;
----

== Return Value

The input weight if it has been set&period;


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