• Applies the given Plutus data parameters to a hex-encoded Plutus script.

    This function decodes the provided Plutus script, applies the given parameters to it, and then re-encodes the script. The parameters are cast to the specified type and converted to a list of PlutusData before being applied.

    Type Parameters

    Parameters

    • plutusScript: string

      The hex-encoded Plutus script to which the parameters will be applied.

    • type: T

      The type of the parameters list.

    • params: Exact<T>

      The parameters to apply to the Plutus script.

    Returns Core.HexBlob

    • A new hex-encoded Plutus script with the parameters applied.