wallet::CCoinControl

Coin Control Features.

Synopsis

Declared in <wallet/coincontrol.h>

class CCoinControl;

Member Functions

NameDescription
CCoinControl [constructor]Construct a coin control with default settings.
GetExternalOutput Returns the external output for the given outpoint if it exists.
GetInputWeight Returns the input weight.
GetScripts Retrieves the scriptSig and scriptWitness for an input.
GetSelectionPos Returns the selection order position stored for the given pre-selected output, if any.
GetSequence Retrieve the sequence for an input
HasSelected Returns true if there are pre-selected inputs.
HasSelectedOrder Returns true if any pre-selected input has a stored selection order position.
IsExternalSelected Returns true if the given output is selected as an external input.
IsSelected Returns true if the given output is pre-selected.
ListSelected List the selected inputs.
Select Lock-in the given output for spending. The output will be included in the transaction even if it's not the most optimal choice.
SetInputWeight Set an input's weight.
UnSelect Unselects the given output.
UnSelectAll Unselects all outputs.

Data Members

NameDescription
destChange Custom change destination, if not set an address is generated
fOverrideFeeRate Override automatic min/max checks on fee, m_feerate must be set if true
m_allow_other_inputs If true, the selection process can add extra unselected inputs from the wallet while requires all selected inputs be used
m_avoid_address_reuse Forbids inclusion of dirty (previously used) addresses
m_avoid_partial_spends Avoid partial use of funds sent to a given address
m_change_type Override the default change type if set, ignored if destChange is set
m_confirm_target Override the default confirmation target if set
m_external_provider SigningProvider that has pubkeys and scripts to do spend size estimation for external inputs
m_fee_mode Fee estimation mode.
m_feerate Override the wallet's fee rate if set
m_include_unsafe_inputs If false, only safe inputs will be used
m_locktime Locktime
m_max_depth Maximum chain depth value for coin availability
m_max_tx_weight Caps weight of resulting tx
m_min_depth Minimum chain depth value for coin availability
m_signal_bip125_rbf Override the wallet's m_signal_rbf if set
m_version Version