[#btck_transaction_spent_outputs_get_coin_at]
= btck&lowbar;transaction&lowbar;spent&lowbar;outputs&lowbar;get&lowbar;coin&lowbar;at
:mrdocs:

Returns a coin contained in the transaction spent outputs at a certain index&period; The returned pointer is unowned and only valid for the lifetime of transaction&lowbar;spent&lowbar;outputs&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;&lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_Coin-0f.adoc[btck&lowbar;Coin] const*
btck&lowbar;transaction&lowbar;spent&lowbar;outputs&lowbar;get&lowbar;coin&lowbar;at(
    xref:btck_TransactionSpentOutputs-05.adoc[btck&lowbar;TransactionSpentOutputs] const* transaction&lowbar;spent&lowbar;outputs,
    size&lowbar;t coin&lowbar;index);
----

== Return Value

A coin pointer&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *transaction&lowbar;spent&lowbar;outputs* [in]
| Non&hyphen;null&period;
| *coin&lowbar;index* [in]
| The index of the to be retrieved coin within the transaction spent outputs&period;
|===


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