Caravan Documentation
    Preparing search index...

    Function estimateMultisigP2SH_P2WSHTransactionVSize

    • Estimate the transaction virtual size (vsize) when spending inputs from the same multisig P2SH-P2WSH address.

      According to Bitcoin Optech calculator:

      • P2SH-P2WSH has the same witness structure as P2WSH
      • Base input size is different: includes P2SH redeem script (22 bytes) instead of empty script
      • Weight calculation: (baseSize * 3 + witnessSize) / 4

      Parameters

      • config: any

      Returns number