Function calculateReferenceScriptFee

  • Calculates the fee for reference scripts in the transaction. This method iterates through the reference inputs, finds the corresponding UTXOs, and calculates the fee based on the size of the Plutus scripts referenced.

    The fee calculation follows a tiered approach where the base fee increases for each range of script size, as defined in the protocol parameters. See https://github.com/CardanoSolutions/ogmios/releases/tag/v6.5.0

    Parameters

    Returns number

    The calculated fee for all reference scripts.

    If a reference input cannot be resolved or if a reference script is not a Plutus script.