[#CCoinsView-GetCoin] = xref:CCoinsView.adoc[CCoinsView]::GetCoin :relfileprefix: ../ :mrdocs: Retrieve the Coin (unspent transaction output) for a given outpoint. May populate the cache. Use PeekCoin() to perform a non‐caching lookup. == Synopsis Declared in `<coins.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::optional<Coin> GetCoin(xref:COutPoint.adoc[COutPoint] const& outpoint) const = 0; ---- == Return Value The coin if it is unspent, or an empty optional otherwise. == Parameters [cols="1,4"] |=== | Name| Description | *outpoint* | The outpoint to look up. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#