ethereumjs-monorepo

@ethereumjs/evm


@ethereumjs/evm / EVMMockBlockchainInterface

Interface: EVMMockBlockchainInterface

Defined in: types.ts:612

Lightweight blockchain interface used by stand-alone EVM execution.

Methods

getBlock()

getBlock(blockId): Promise<EVMMockBlock>

Defined in: types.ts:613

Parameters

blockId

number

Returns

Promise<EVMMockBlock>


putBlock()

putBlock(block): Promise<void>

Defined in: types.ts:614

Parameters

block

EVMMockBlock

Returns

Promise<void>


shallowCopy()

shallowCopy(): EVMMockBlockchainInterface

Defined in: types.ts:615

Returns

EVMMockBlockchainInterface