[#btck_transaction_spent_outputs_copy]
= btck&lowbar;transaction&lowbar;spent&lowbar;outputs&lowbar;copy
:mrdocs:

Copy a transaction&apos;s spent outputs&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard, &lowbar;&lowbar;nonnull&lowbar;&lowbar;&rsqb;&rsqb;
xref:btck_TransactionSpentOutputs-05.adoc[btck&lowbar;TransactionSpentOutputs]*
btck&lowbar;transaction&lowbar;spent&lowbar;outputs&lowbar;copy(xref:btck_TransactionSpentOutputs-05.adoc[btck&lowbar;TransactionSpentOutputs] const* transaction&lowbar;spent&lowbar;outputs);
----

== Return Value

The copied transaction spent outputs&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *transaction&lowbar;spent&lowbar;outputs* [in]
| Non&hyphen;null&period;
|===


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