Skip to content

forkAndCacheBlock

forkAndCacheBlock(client, block, executeBlock?): Promise<Vm>

Will fork a given block number and save the state roots to state manager

Parameters

client: TevmNode<"fork" | "normal", object>

block: Block

executeBlock?: boolean = false

Returns

Promise<Vm>

A vm that forks the given block

Defined in

packages/actions/src/internal/forkAndCacheBlock.js:14