[#wallet-CalculateMaximumSignedInputSize-0f] = xref:wallet.adoc[wallet]::CalculateMaximumSignedInputSize :relfileprefix: ../ :mrdocs: Get the marginal bytes if spending the specified output, using an explicit signing provider. == Synopsis Declared in `<wallet/spend.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- int 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); ---- == 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. | *outpoint* | The outpoint identifying the output being spent. | *pwallet* | The signing provider used to estimate the signature size. | *can_grind_r* | Whether low‐R signature grinding may be assumed when sizing the input. | *coin_control* | Coin control settings that may override signing information. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#