[#CCoinsViewDB-GetCoin]
= xref:CCoinsViewDB.adoc[CCoinsViewDB]::GetCoin
:relfileprefix: ../
:mrdocs:

Returns the coin for an outpoint, if present&period;

== Synopsis

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

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

== Return Value

The coin if found, or std&colon;&colon;nullopt otherwise&period;

== Parameters

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


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