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

Holds the virtual size and weight of a transaction&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
struct TxSize;
----

== Data Members

[cols="1,4"]
|===
| Name| Description
| xref:wallet/TxSize/vsize.adoc[`vsize`] 
| The transaction&apos;s virtual size in vbytes&period;
| xref:wallet/TxSize/weight.adoc[`weight`] 
| The transaction&apos;s weight units&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:wallet/CalculateMaximumSignedTxSize-00.adoc[`CalculateMaximumSignedTxSize`]
| Calculate the size of the transaction using CoinControl to determine whether to expect signature grinding when calculating the size of the input spend&period;
| xref:wallet/CalculateMaximumSignedTxSize-0d.adoc[`CalculateMaximumSignedTxSize`]
| Calculate the size of the transaction, looking up previous outputs from the wallet&period;
|===


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