Caravan Documentation
    Preparing search index...

    Function calculateTotalInputValue

    • Calculates the total input value from the given PSBT.

      This function aggregates the total value of all inputs, considering both witness and non-witness UTXOs. It uses helper functions to parse and sum up the values of each input.

      Parameters

      • psbt: PsbtV2

        The PsbtV2 instance representing the partially signed Bitcoin transaction.

      Returns BigNumber

      The total input value as a BigNumber.