Skip to content

EVMOpts

EVMOpts: Parameters<typeof EVM.create>[0]

The options available to pass to the EVM. Inferred from ethereumjs/evm

See

https://github.com/ethereumjs/ethereumjs-monorepo/pull/3334

Example

import { type Evm, createEvm, CreateEvmOptions } from 'tevm/evm'
import { mainnet } from 'tevm/common'
import { createStateManager } from 'tevm/state'
import { createBlockchain } from 'tevm/blockchain'}
import { EthjsAddress } from 'tevm/utils'
const evm: Evm = createEvm({
common: mainnet.copy(),
stateManager: createStateManager(),
blockchain: createBlockchain(),
})

Defined in

packages/evm/src/EvmOpts.ts:21