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

Returns a single spent coin by index&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:btck/CoinView.adoc[CoinView]
GetCoin(size&lowbar;t index) const;
----

== Return Value

A view of the spent coin&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *index*
| The zero&hyphen;based index within the transaction&apos;s inputs&period;
|===


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