Class EmscriptenTxEvaluator

An adapter class that makes a JavaScript TxEvaluator implementation callable from the WASM C-layer. It creates and manages the lifecycle of a native proxy object that forwards calls to this JavaScript instance.

Implements

Constructors

Properties

Methods

Constructors

Properties

objectId: number
txEvaluatorPtr: number

Methods

  • Runs transaction evaluation to obtain script execution units. This method delegates the call to the wrapped JavaScript TxEvaluator instance.

    Parameters

    • tx: string

      Transaction payload to evaluate (hex-encoded CBOR).

    • OptionaladditionalUtxos: UTxO[]

      Optional extra UTxOs for the evaluator to consider.

    Returns Promise<Redeemer[]>

    A promise that resolves to a list of redeemers with execution units.