Module

Contract.Scripts

A module for various script types, most of which are newtype wrappers over PlutusScript. Corresponding hashes are also included as newtype wrappers over ScriptHash.

#getScriptByHash

getScriptByHash :: ScriptHash -> Contract (Either ClientError (Maybe ScriptRef))

Retrieve a ScriptRef given the hash

#getScriptsByHashes

getScriptsByHashes :: Array ScriptHash -> Contract (Map ScriptHash (Either ClientError (Maybe ScriptRef)))

Retrieve ScriptRefs given their hashes

#Validator

type Validator = PlutusScript

Deprecated. Use Cardano.Types.PlutusScript

#ValidatorHash

type ValidatorHash = ScriptHash

Deprecated. Use Cardano.Types.ScriptHash

#validatorHash

validatorHash :: Warn (Text "Deprecated: validatorHash. Use Cardano.Types.PlutusScript.hash") => PlutusScript -> ScriptHash

Re-exports from Cardano.Types

Re-exports from Cardano.Types.NativeScript

Modules