[#CCoinsView-PeekCoin]
= xref:CCoinsView.adoc[CCoinsView]::PeekCoin
:relfileprefix: ../
:mrdocs:

Retrieve the Coin (unspent transaction output) for a given outpoint, without caching results&period; Does not populate the cache&period; Use GetCoin() to cache the result&period;

== Synopsis

Declared in `&lt;coins&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::optional&lt;Coin&gt;
PeekCoin(xref:COutPoint.adoc[COutPoint] const& outpoint) const = 0;
----

== Return Value

The coin if it is unspent, or an empty optional otherwise&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *outpoint*
| The outpoint to look up&period;
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
