ethereumjs-monorepo

@ethereumjs/vm


@ethereumjs/vm / createVM

Function: createVM()

createVM(opts?): Promise<VM>

Defined in: vm/src/constructors.ts:24

Async factory for initializing a VM with sensible defaults.

Supplies mainnet @ethereumjs/common!Common, @ethereumjs/evm!EVMMockBlockchain, @ethereumjs/statemanager!MerkleStateManager, and a nested @ethereumjs/evm!createEVM instance when not provided.

Parameters

opts?

VMOpts = {}

Returns

Promise<VM>

Throws

If both evm and evmOpts are set, or if conflicting profiler options are enabled