callHandler
callHandler(
client
,options
?):CallHandler
Creates a tree-shakable instance of client.tevmCall
action.
This function is designed for use with TevmNode and the internal instance of TEVM,
and it is distinct from the viem API tevmCall
.
Note: This is the internal logic used by higher-level APIs such as tevmCall
.
Parameters
• client: TevmNode
<"fork"
| "normal"
, object
>
The TEVM base client instance.
• options? = {}
Optional parameters.
• options.throwOnFail?: undefined
| boolean
= true
Whether to throw an error on failure.
Returns
The call handler function.
Throws
If throwOnFail
is true, returns TevmCallError
as value.