@ethereumjs/vm / RunTxOpts
Defined in: vm/src/types.ts:385
Options for the runTx
method.
optional
block:Block
Defined in: vm/src/types.ts:390
The @ethereumjs/block
the tx
belongs to.
If omitted, a default blank block will be used.
optional
blockGasUsed:bigint
Defined in: vm/src/types.ts:438
To obtain an accurate tx receipt input the block gas used up until this tx.
optional
reportAccessList:boolean
Defined in: vm/src/types.ts:427
If true, adds a generated EIP-2930 access list
to the RunTxResult
returned.
Option works with all tx types. EIP-2929 needs to
be activated (included in berlin
HF).
Note: if this option is used with a custom StateManager implementation StateManager.generateAccessList must be implemented.
optional
reportPreimages:boolean
Defined in: vm/src/types.ts:433
If true, adds a hashedKey -> preimages mapping of all touched accounts
to the RunTxResult
returned.
optional
skipBalance:boolean
Defined in: vm/src/types.ts:403
Skip balance checks if true. Adds transaction cost to balance to ensure execution doesn’t fail.
optional
skipBlockGasLimitValidation:boolean
Defined in: vm/src/types.ts:409
If true, skips the validation of the tx’s gas limit against the block’s gas limit.
optional
skipHardForkValidation:boolean
Defined in: vm/src/types.ts:415
If true, skips the hardfork validation of vm, block and tx
optional
skipNonce:boolean
Defined in: vm/src/types.ts:398
If true, skips the nonce check
tx:
TypedTransaction
Defined in: vm/src/types.ts:394
An @ethereumjs/tx
to run