[#wallet-PreselectedInput-GetInputWeight] = xref:wallet.adoc[wallet]::xref:wallet/PreselectedInput.adoc[PreselectedInput]::GetInputWeight :relfileprefix: ../../ :mrdocs: Retrieve the input weight for this input. == Synopsis Declared in `<wallet/coincontrol.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<int64_t> GetInputWeight() const; ---- == Return Value The input weight if it has been set. [.small]#Created with https://www.mrdocs.com[MrDocs]#