Skip to content

CallResult

CallResult<ErrorType>: object

Result of a Tevm VM Call method

Type parameters

ErrorType = CallError

Type declaration

accessList?

optional accessList: Record<Address, Set<Hex>>

The access list if enabled on call Mapping of addresses to storage slots

blobGasUsed?

optional blobGasUsed: bigint

Amount of blob gas consumed by the transaction

createdAddress?

optional createdAddress: Address

Address of created account during transaction, if any

createdAddresses?

optional createdAddresses: Set<Address>

Map of addresses which were created (used in EIP 6780)

errors?

optional errors: ErrorType[]

Description of the exception, if any occurred

executionGasUsed

executionGasUsed: bigint

Amount of gas the code used to run

gas?

optional gas: bigint

Amount of gas left

gasRefund?

optional gasRefund: bigint

The gas refund counter as a uint256

logs?

optional logs: Log[]

Array of logs that the contract emitted

rawData

rawData: Hex

Encoded return value from the contract as hex string

selfdestruct?

optional selfdestruct: Set<Address>

A set of accounts to selfdestruct

trace?

optional trace: DebugTraceCallResult

The call trace if tracing is enabled on call

txHash?

optional txHash: 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

result/CallResult.ts:8