CallHandler
CallHandler: (
action
) =>Promise
<CallResult
>
Executes a call against the VM, similar to eth_call
but with more options for controlling the execution environment.
This low-level function is used internally by higher-level functions like contract
and script
, which are designed to interact with deployed contracts or undeployed scripts, respectively.
Parameters
• action: CallParams
The parameters for the call.
Returns
Promise
<CallResult
>
The result of the call, including execution details and any returned data.
Throws
If throwOnFail
is true, returns TevmCallError
as value.