cardano-web3-js / CML / calc_script_data_hash
Function: calc_script_data_hash()
calc_script_data_hash(
redeemers
,datums
,cost_models
,used_langs
):ScriptDataHash
Defined in: node_modules/cardano-wasm-libs/src/libs/cardano-multiplatform-lib/nodejs/cardano_multiplatform_lib.d.ts:42
Calculates the hash for script data (with plutus scripts) if it is necessary. Returns None if it was not necessary (no datums/redeemers) to include.
Most users will not directly need this as when using the builders it will be invoked for you.
Note: This WASM binding does not work with non-standard witness set encodings. If you created the witness set manually this is not an issue but for constructing it from deserializing a transaction/witness then please use calc_script_data_hash_from_witness()