• Preparing search index...
  • The search index is not available
blaze-cardano
  • blaze-cardano
  • blaze-tx/src
  • computeScriptData

Function computeScriptData

  • computeScriptData(redeemers, datums, usedCostModels): IScriptData | undefined
  • Calculates the correct script data hash for a transaction

    Separate from the getScriptData method in TxBuilder to allow for more thorough testing This is heavily documented here: https://github.com/IntersectMBO/cardano-ledger/blob/master/eras/conway/impl/cddl-files/conway.cddl#L423-L490

    Parameters

    • redeemers: Redeemers

      The redeemers of the transaction

    • datums: CborSet<PlutusData, PlutusData>

      The datums in the witness set of the transaction

    • usedCostModels: Costmdls

      The cost models for any languages used in the transaction

    Returns IScriptData | undefined

    • Defined in packages/blaze-tx/src/utils.ts:175

Settings

Member Visibility
blaze-cardano
  • Loading...