Skip to content

CallHandler

CallHandler: (action) => Promise<CallResult>

Executes a call against the VM. It is similar to eth_call but has more options for controlling the execution environment

See contract and script which executes calls specifically against deployed contracts or undeployed scripts

Example

const res = tevm.call({
to: '0x123...',
data: '0x123...',
from: '0x123...',
gas: 1000000,
gasPrice: 1n,
skipBalance: true,
}

Parameters

action: CallParams

Returns

Promise<CallResult>

Source

packages/actions/src/Call/CallHandlerType.ts:21