[#CTransaction-ComputeTotalSize]
= xref:CTransaction.adoc[CTransaction]::ComputeTotalSize
:relfileprefix: ../
:mrdocs:

Calculate the total transaction size in bytes, including witness data&period; &quot;Total Size&quot; defined in BIP141 and BIP144&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
unsigned int
ComputeTotalSize() const;
----

== Return Value

Total transaction size in bytes


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