@ethereumjs/vm / RunBlockOpts
Defined in: vm/src/types.ts:260
Options for running a block.
block:
Block
Defined in: vm/src/types.ts:264
The Block to process
optionalblockAccessList?:Uint8Array<ArrayBufferLike> |BlockLevelAccessList|BALJSONBlockAccessList
Defined in: vm/src/types.ts:340
Block-level access list supplied with the block (e.g. from an execution payload). When set and EIP-7928 is active, runBlock validates structure and header hash before execution and RLP equality against the generated list after execution.
Experimental (Amsterdam): may change on patch releases. See @ethereumjs/vm
README section Amsterdam hardfork (experimental) for release ↔ spec tracking.
optionalclearCache?:boolean
Defined in: vm/src/types.ts:276
Clearing the StateManager cache.
If state root is not reset for whatever reason this can be set to false for better performance.
Default: true
optionalgenerate?:boolean
Defined in: vm/src/types.ts:283
Whether to generate the stateRoot and other related fields.
If true, runBlock will set the fields stateRoot, receiptTrie, gasUsed, and bloom (logs bloom) after running the block.
If false, runBlock throws if any fields do not match.
Defaults to false.
optionalreportPreimages?:boolean
Defined in: vm/src/types.ts:324
If true, adds a hashedKey -> preimages mapping of all touched accounts
to the RunTxResult returned.
optionalroot?:Uint8Array<ArrayBufferLike>
Defined in: vm/src/types.ts:268
Root of the state trie
optionalsetHardfork?:boolean
Defined in: vm/src/types.ts:318
Set the hardfork either by timestamp (for HFs from Shanghai onwards) or by block number for older Hfs.
Default: false (HF is set to whatever default HF is set by the @ethereumjs/common!Common instance)
optionalskipBalance?:boolean
Defined in: vm/src/types.ts:311
If true, checks the balance of the from account for the transaction and sets its
balance equal equal to the upfront cost (gas limit * gas price + transaction value)
optionalskipBlockValidation?:boolean
Defined in: vm/src/types.ts:290
If true, will skip “Block validation”: Block validation validates the header (with respect to the blockchain), the transactions, the transaction trie and the uncle hash.
optionalskipHardForkValidation?:boolean
Defined in: vm/src/types.ts:295
If true, skips the hardfork validation of vm, block and tx
optionalskipHeaderValidation?:boolean
Defined in: vm/src/types.ts:302
if true, will skip “Header validation” If the block has been picked from the blockchain to be executed, header has already been validated, and can be skipped especially when consensus of the chain has moved ahead.
optionalskipNonce?:boolean
Defined in: vm/src/types.ts:306
If true, skips the nonce check
optionalvalidateBlockSize?:boolean
Defined in: vm/src/types.ts:330
If true, will validate block size limit (EIP-7934) when validating block data. Defaults to false.