[#wallet-SelectionResult-GetWaste] = xref:wallet.adoc[wallet]::xref:wallet/SelectionResult.adoc[SelectionResult]::GetWaste :relfileprefix: ../../ :mrdocs: Return the previously computed waste for this result. == Synopsis Declared in `<wallet/coinselection.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[nodiscard]] xref:CAmount.adoc[CAmount] GetWaste() const; ---- == Return Value The computed waste. [NOTE] ==== The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^]. ==== [.small]#Created with https://www.mrdocs.com[MrDocs]#