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

Identifies which coin selection algorithm produced a result&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
enum class SelectionAlgorithm : uint8&lowbar;t;
----

== Members

[cols="1,4"]
|===
| Name| Description
| `BNB` 
| Branch and bound search for a changeless solution&period;
| `KNAPSACK` 
| Knapsack&hyphen;style approximation, the original fallback algorithm&period;
| `SRD` 
| Single Random Draw selection&period;
| `CG` 
| CoinGrinder deterministic search&period;
| `MANUAL` 
| Coins selected manually by the user&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/GetAlgorithmName.adoc[`GetAlgorithmName`]
| Return the human&hyphen;readable name of a selection algorithm&period;
|===


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