CallResult
CallResult<
ErrorType>:object
Result of a Tevm VM Call method
Type parameters
• ErrorType = TevmCallError
Type declaration
accessList?
The access list if enabled on call Mapping of addresses to storage slots
amountSpent?
optionalamountSpent:bigint
The amount of ether used by this transaction. Does not include l1 fees
baseFee?
optionalbaseFee:bigint
The base fee of the transaction
blobGasUsed?
optionalblobGasUsed:bigint
Amount of blob gas consumed by the transaction
createdAddress?
optionalcreatedAddress:Address
Address of created account during transaction, if any
createdAddresses?
optionalcreatedAddresses:Set<Address>
Map of addresses which were created (used in EIP 6780) Note the addresses are not actually created til the tx is mined
errors?
optionalerrors:ErrorType[]
Description of the exception, if any occurred
executionGasUsed
executionGasUsed:
bigint
Amount of gas the code used to run
gas?
optionalgas:bigint
Amount of gas left
gasRefund?
optionalgasRefund:bigint
The gas refund counter as a uint256
l1BaseFee?
optionall1BaseFee:bigint
Latest known L1 base fee known by the l2 chain. Only included when an op-stack common is provided
See
l1BlobFee?
optionall1BlobFee:bigint
Current blob base fee known by the l2 chain.
See
l1Fee?
optionall1Fee:bigint
L1 fee that should be paid for the tx Only included when an op-stack common is provided
See
l1GasUsed?
optionall1GasUsed:bigint
Amount of L1 gas used to publish the transaction. Only included when an op-stack common is provided
See
logs?
optionallogs:Log[]
Array of logs that the contract emitted
minerValue?
optionalminerValue:bigint
The value that accrues to the miner by this transaction
preimages?
Preimages mapping of the touched accounts from the tx (see reportPreimages option)
priorityFee?
optionalpriorityFee:bigint
Priority fee set by the transaction.
rawData
rawData:
Hex
Encoded return value from the contract as hex string
selfdestruct?
optionalselfdestruct:Set<Address>
A set of accounts to selfdestruct
totalGasSpent?
optionaltotalGasSpent:bigint
The amount of gas used in this transaction, which is paid for This contains the gas units that have been used on execution, plus the upfront cost, which consists of calldata cost, intrinsic cost and optionally the access list costs Does not include l1 fees
trace?
optionaltrace:DebugTraceCallResult
The call trace if tracing is enabled on call
txHash?
optionaltxHash:Hex
The returned tx hash if the call was included in the chain
Will not be defined if the call was not included in the chain
Whether a call is included in the chain depends on if the
createTransaction option and the result of the call
Source
packages/actions/src/Call/CallResult.ts:8