[#CCoinsViewMemPool-GetCoin] = xref:CCoinsViewMemPool.adoc[CCoinsViewMemPool]::GetCoin :relfileprefix: ../ :mrdocs: GetCoin, returning whether it exists and is not spent. Also updates m_non_base_coins if the coin is not fetched from base. May populate the base view on cache misses. == Synopsis Declared in `<txmempool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::optional<Coin> GetCoin(xref:COutPoint.adoc[COutPoint] const& outpoint) const override; ---- == Return Value The coin if it exists and is unspent, otherwise std::nullopt. == Parameters [cols="1,4"] |=== | Name| Description | *outpoint* | The outpoint to look up. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#