Module: p2sh_p2wsh

This module provides functions and constants for the P2SH-wrapped P2WSH address type, sometimes written P2SH-P2WSH.

Source:

Members

(static, constant) P2SH_P2WSH :string

Address type constant for "pay-to-script-hash" wrapped "pay-to-witness-script-hash" (P2SH-P2WSH) addresses.

Type:
  • string
Default Value:
  • P2SH-P2WSH
Source:

Methods

(static) estimateMultisigP2SH_P2WSHTransactionVSize(config) → {number}

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

Parameters:
Name Type Description
config Object

configuration for the calculation

Properties
Name Type Description
numInputs number

number of m-of-n multisig P2SH inputs

numOutputs number

number of outputs

m number

required signers

n number

total signers

Source:
Returns:

estimated transaction virtual size in bytes

Type
number