[#wallet-CalculateMaximumSignedInputSize-09] = xref:wallet.adoc[wallet]::CalculateMaximumSignedInputSize :relfileprefix: ../ :mrdocs: `CalculateMaximumSignedInputSize` overloads == Synopses Declared in `<wallet/spend.h>` Get the marginal bytes if spending the specified output from this transaction. Use CoinControl to determine whether to expect signature grinding when calculating the size of the input spend. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:wallet/CalculateMaximumSignedInputSize-0c.adoc[CalculateMaximumSignedInputSize]( xref:CTxOut.adoc[CTxOut] const& txout, xref:wallet/CWallet.adoc[CWallet] const* pwallet, xref:wallet/CCoinControl.adoc[CCoinControl] const* coin_control); ---- [.small]#xref:wallet/CalculateMaximumSignedInputSize-0c.adoc[_» more..._]# Get the marginal bytes if spending the specified output, using an explicit signing provider. [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int xref:wallet/CalculateMaximumSignedInputSize-0f.adoc[CalculateMaximumSignedInputSize]( xref:CTxOut.adoc[CTxOut] const& txout, xref:COutPoint.adoc[COutPoint] outpoint, xref:SigningProvider.adoc[SigningProvider] const* pwallet, bool can_grind_r, xref:wallet/CCoinControl.adoc[CCoinControl] const* coin_control); ---- [.small]#xref:wallet/CalculateMaximumSignedInputSize-0f.adoc[_» more..._]# == Return Value The marginal size in bytes of the signed input, or ‐1 on failure. == Parameters [cols="1,4"] |=== | Name| Description | *txout* | The output that would be spent. | *pwallet* | The wallet that owns the output and provides signing information. | *coin_control* | Coin control settings used to decide whether to expect signature grinding. | *outpoint* | The outpoint identifying the output being spent. | *can_grind_r* | Whether low‐R signature grinding may be assumed when sizing the input. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#