Skip to main content

vm.makeuplcevaluator

Home > @blaze-cardano/vm > makeUplcEvaluator

makeUplcEvaluator() function

This function returns an evaluator function that can be used to evaluate a transaction. The evaluator function uses the UPLC (Untyped Plutus Core) evaluator to simulate the execution of scripts.

Signature:

export declare function makeUplcEvaluator(params: ProtocolParameters, overEstimateSteps: number, overEstimateMem: number, slotConfig?: SlotConfig): Evaluator;

Parameters

Parameter

Type

Description

params

ProtocolParameters

The protocol parameters.

overEstimateSteps

number

The overestimation factor for execution steps.

overEstimateMem

number

The overestimation factor for memory.

slotConfig

SlotConfig

(Optional) The slot configuration to be used. Defaults to Mainnet.

Returns:

Evaluator

An evaluator function.