[#wallet-CachableAmount-Set] = xref:wallet.adoc[wallet]::xref:wallet/CachableAmount.adoc[CachableAmount]::Set :relfileprefix: ../../ :mrdocs: Store a cached balance in the avoid‐reuse or all slot. == Synopsis Declared in `<wallet/transaction.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void Set( bool avoid_reuse, xref:CAmount.adoc[CAmount] value); ---- == Parameters [cols="1,4"] |=== | Name| Description | *avoid_reuse* | Whether to store the value in the avoid‐reuse slot rather than the all slot. | *value* | The balance to cache. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#