ethereumjs-monorepo

@ethereumjs/vm


@ethereumjs/vm / buildBlock

Function: buildBlock()

buildBlock(vm, opts): Promise<BlockBuilder>

Defined in: vm/src/buildBlock.ts:450

Build a block on top of the current state by adding one transaction at a time.

Creates a checkpoint on the StateManager and modifies the state as transactions are run. The checkpoint is committed on BlockBuilder.build or discarded with BlockBuilder.revert.

Parameters

vm

VM

opts

BuildBlockOpts

Returns

Promise<BlockBuilder>

An instance of BlockBuilder with methods: