[#wallet-CalculateMaximumSignedTxSize-00] = xref:wallet.adoc[wallet]::CalculateMaximumSignedTxSize :relfileprefix: ../ :mrdocs: Calculate the size of the transaction using CoinControl to determine whether to expect signature grinding when calculating the size of the input spend. == Synopsis Declared in `<wallet/spend.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:wallet/TxSize.adoc[TxSize] CalculateMaximumSignedTxSize( xref:CTransaction.adoc[CTransaction] const& tx, xref:wallet/CWallet.adoc[CWallet] const* wallet, std::vector<CTxOut> const& txouts, xref:wallet/CCoinControl.adoc[CCoinControl] const* coin_control = nullptr); ---- == Return Value The estimated virtual size and weight of the signed transaction. == Parameters [cols="1,4"] |=== | Name| Description | *tx* | The transaction whose signed size is estimated. | *wallet* | The wallet that owns the inputs and provides signing information. | *txouts* | The previous outputs spent by the transaction's inputs. | *coin_control* | Coin control settings used to decide whether to expect signature grinding. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#