wallet::FetchSelectedInputs

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

Synopsis

Declared in <wallet/spend.h>

[[requires_capability(0x7f2e1e656290)]]
util::Result<CoinsResult>
FetchSelectedInputs(
    CWallet const& wallet,
    CCoinControl const& coin_control,
    CoinSelectionParams const& coin_selection_params);

Return Value

The fetched and validated selected inputs, or an error on failure.

Parameters

NameDescription
walletThe wallet used to look up and validate internal inputs.
coin_controlCoin control settings holding the manually selected inputs.
coin_selection_paramsParameters used when computing each input's value.