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

Forward the non&hyphen;caching lookup to the backing view&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 override;
----

== Return Value

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

== Parameters

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


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