@ethereumjs/evm / EVMRunCallOpts
Options for running a call (or create) operation with EVM.runCall()
EVMRunOpts
↳ EVMRunCallOpts
• Optional
accessWitness: AccessWitness
• Optional
blobVersionedHashes: Uint8Array
[]
Versioned hashes for each blob in a blob transaction
EVMRunOpts.blobVersionedHashes
• Optional
block: Block
The block
the tx
belongs to. If omitted a default blank block will be used.
EVMRunOpts.block
• Optional
caller: Address
The address that ran this code (msg.sender
). Defaults to the zero address.
EVMRunOpts.caller
• Optional
code: Uint8Array
The EVM code to run.
EVMRunOpts.code
• Optional
createdAddresses: Set
<string
>
Created addresses in current context. Used in EIP 6780
• Optional
data: Uint8Array
The input data.
EVMRunOpts.data
• Optional
delegatecall: boolean
If the call is a DELEGATECALL. Defaults to false.
• Optional
depth: number
The call depth. Defaults to 0
EVMRunOpts.depth
• Optional
gasLimit: bigint
The gas limit for the call. Defaults to 16777215
(0xffffff
)
EVMRunOpts.gasLimit
• Optional
gasPrice: bigint
The gas price for the call. Defaults to 0
EVMRunOpts.gasPrice
• Optional
gasRefund: bigint
Refund counter. Defaults to 0
• Optional
isCompiled: boolean
If the code location is a precompile.
• Optional
isStatic: boolean
If the call should be executed statically. Defaults to false.
EVMRunOpts.isStatic
• Optional
message: Message
Optionally pass in an already-built message.
• Optional
origin: Address
The address where the call originated from. Defaults to the zero address.
EVMRunOpts.origin
• Optional
salt: Uint8Array
An optional salt to pass to CREATE2.
• Optional
selfdestruct: Set
<string
>
Addresses to selfdestruct. Defaults to the empty set.
EVMRunOpts.selfdestruct
• Optional
skipBalance: boolean
Skip balance checks if true. If caller balance is less than message value, sets balance to message value to ensure execution doesn’t fail.
• Optional
to: Address
The address of the account that is executing this code (address(this)
). Defaults to the zero address.
EVMRunOpts.to
• Optional
value: bigint
The value in ether that is being sent to opts.address
. Defaults to 0
EVMRunOpts.value