[#wallet-CoinsResult-Add]
= xref:wallet.adoc[wallet]::xref:wallet/CoinsResult.adoc[CoinsResult]::Add
:relfileprefix: ../../
:mrdocs:

Add a single output of the given type to the result&period;

== Synopsis

Declared in `&lt;wallet&sol;spend&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
Add(
    xref:OutputType.adoc[OutputType] type,
    xref:wallet/COutput.adoc[COutput] const& out);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *type*
| The output type to store the coin under&period;
| *out*
| The output to add to the result&period;
|===


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