cardano-web3-js / CML / hash_script_data
Function: hash_script_data()
hash_script_data(
redeemers
,cost_models
,datums?
):ScriptDataHash
Defined in: node_modules/cardano-wasm-libs/src/libs/cardano-multiplatform-lib/nodejs/cardano_multiplatform_lib.d.ts:29
Calculates the hash for script data (no 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()