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

Fetch and validate coin control selected inputs&period; Coins could be internal (from the wallet) or external&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;requires&lowbar;capability(0x7f94fdec2d40)&rsqb;&rsqb;
xref:util/Result.adoc[util::Result&lt;CoinsResult&gt;]
FetchSelectedInputs(
    xref:wallet/CWallet.adoc[CWallet] const& wallet,
    xref:wallet/CCoinControl.adoc[CCoinControl] const& coin&lowbar;control,
    xref:wallet/CoinSelectionParams.adoc[CoinSelectionParams] const& coin&lowbar;selection&lowbar;params);
----

== Return Value

The fetched and validated selected inputs, or an error on failure&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet used to look up and validate internal inputs&period;
| *coin&lowbar;control*
| Coin control settings holding the manually selected inputs&period;
| *coin&lowbar;selection&lowbar;params*
| Parameters used when computing each input&apos;s value&period;
|===


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