callHandler
callHandler(
client,options?):CallHandler
Creates a code splitable instance of client.tevmCall action
Parameters
• client: BaseClient<"fork" | "normal", object>
• options?= {}
• options.throwOnFail?: undefined | boolean= true
Returns
Throws
if throwOnFail is true returns TevmCallError as value
Example
import { createBaseClient } from 'tevm/base-client'import { callHandler } from 'tevm/actions'
const client = createBaseClient()
const call = callHandler(client)
const res = await call({ createTransaction: true, to: `0x${'69'.repeat(20)}`, value: 420n, skipBalance: true,})Source
packages/actions/src/Call/callHandler.js:61