[#wallet-TxSize] = xref:wallet.adoc[wallet]::TxSize :relfileprefix: ../ :mrdocs: Holds the virtual size and weight of a transaction. == Synopsis Declared in `<wallet/spend.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- struct TxSize; ---- == Data Members [cols="1,4"] |=== | Name| Description | xref:wallet/TxSize/vsize.adoc[`vsize`] | The transaction's virtual size in vbytes. | xref:wallet/TxSize/weight.adoc[`weight`] | The transaction's weight units. |=== == 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. | xref:wallet/CalculateMaximumSignedTxSize-0d.adoc[`CalculateMaximumSignedTxSize`] | Calculate the size of the transaction, looking up previous outputs from the wallet. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#