[#CalculateOutputValue]
= CalculateOutputValue
:mrdocs:

Sums the value of all outputs of a transaction&period;

== Synopsis

Declared in `&lt;primitives&sol;transaction&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;typename TxType&gt;
xref:CAmount.adoc[CAmount]
CalculateOutputValue(TxType const& tx);
----

== Return Value

The total value of all outputs&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *tx*
| The transaction whose outputs are summed&period;
|===


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