Skip to main content
Version: Next

emulator.emulator._constructor_

Home > @blaze-cardano/emulator > Emulator > (constructor)

Emulator.(constructor)

Constructs a new instance of the Emulator class. Initializes the ledger with the provided genesis outputs and parameters.

Signature:

constructor(genesisOutputs: TransactionOutput[], params?: ProtocolParameters, { evaluator, slotConfig }?: EmulatorOptions);

Parameters

Parameter

Type

Description

genesisOutputs

TransactionOutput[]

The genesis outputs to initialize the ledger with.

params

ProtocolParameters

(Optional) The parameters to initialize the emulator with.

{ evaluator, slotConfig }

EmulatorOptions

(Optional)