tevmCall
tevmCall(
client
,params
):Promise
<CallResult
<TevmCallError
>>
A tree-shakeable version of the tevmCall
action for viem.
Executes a call against the VM. It is similar to eth_call
but provides more options for controlling the execution environment.
By default, it does not modify the state after the call is complete, but this can be configured with the createTransaction
option.
Parameters
• client: Client
<TevmTransport
<string
>, undefined
| Chain
, undefined
| Account
, undefined
, undefined
| object
>
The viem client configured with TEVM transport.
• params: CallParams
<boolean
>
Parameters for the call, including the target address, call data, sender address, gas limit, gas price, and other options.
Returns
Promise
<CallResult
<TevmCallError
>>
The result of the call.
Example
See
- CallParams for options reference.
- BaseCallParams for the base call parameters.
- CallResult for return values reference.
- TEVM Actions Guide