Calculate the size of the transaction, looking up previous outputs from the wallet.
Synopsis
Declared in <wallet/spend.h>
[[requires_capability(0x7f2e1e5eb5d0)]]
TxSize
CalculateMaximumSignedTxSize(
CTransaction const& tx,
CWallet const* wallet,
CCoinControl const* coin_control = nullptr);
Return Value
The estimated virtual size and weight of the signed transaction.
Parameters
Name |
Description |
tx |
The transaction whose signed size is estimated. |
wallet |
The wallet that owns the inputs and provides signing information. |
coin_control |
Coin control settings used to decide whether to expect signature grinding. |
Created with MrDocs