[#wallet-SelectCoinsBnB] = xref:wallet.adoc[wallet]::SelectCoinsBnB :relfileprefix: ../ :mrdocs: Select coins using the Branch and Bound algorithm to find a changeless solution. == Synopsis Declared in `<wallet/coinselection.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:util/Result.adoc[util::Result<SelectionResult>] SelectCoinsBnB( std::vector<OutputGroup>& utxo_pool, xref:CAmount.adoc[CAmount] const& selection_target, xref:CAmount.adoc[CAmount] const& cost_of_change, int max_selection_weight); ---- == Return Value If successful, a valid SelectionResult, otherwise util::Error. == Parameters [cols="1,4"] |=== | Name| Description | *utxo_pool* | The output groups eligible for selection. | *selection_target* | The target value to select for. | *cost_of_change* | The cost of creating and later spending a change output. | *max_selection_weight* | The maximum allowed weight for a valid selection. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#