Skip to main content

calcRefScriptsSize

export function calcRefScriptsSize(
  inputs: TxInput[],
  refInputs: undefined | TxInput[]
): bigint

Calculates the total size of reference scripts in unique inputs

Arguments

1. inputs

inputs: TxInput[]

2. refInputs

refInputs: undefined | TxInput[]

Returns

bigint
  • number of cbor bytes