[#CCoinsViewCache-AddCoin] = xref:CCoinsViewCache.adoc[CCoinsViewCache]::AddCoin :relfileprefix: ../ :mrdocs: Add a coin. Set possible_overwrite to true if an unspent version may already exist in the cache. == Synopsis Declared in `<coins.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void AddCoin( xref:COutPoint.adoc[COutPoint] const& outpoint, xref:Coin-04.adoc[Coin]&& coin, bool possible_overwrite); ---- == Parameters [cols="1,4"] |=== | Name| Description | *outpoint* | The outpoint to add the coin under. | *coin* | The coin to add (moved into the cache). | *possible_overwrite* | Set to true if an unspent version may already exist in the cache. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#