Skip to main content
Version: Next

tx.typedscript

Home > @blaze-cardano/tx > TypedScript

TypedScript class

Script wrapper that binds a datum type and redeemer type to one script.

Signature:

export declare class TypedScript<DatumType extends PlutusData, RedeemerType extends PlutusData> 

Constructors

Constructor

Modifiers

Description

(constructor)(Script, name)

Constructs a new instance of the TypedScript class

Properties

Property

Modifiers

Type

Description

__datum?

protected

readonly

DatumType

(Optional) Type-only datum marker used for generic inference.

__redeemer?

protected

readonly

RedeemerType

(Optional) Type-only redeemer marker used for generic inference.

name?

readonly

string | undefined

(Optional) Human-readable identifier included in builder error messages. Blueprint codegen sets it to the validator's blueprint title.

Script

readonly

Script