Skip to content

TevmViemActionsApi

TevmViemActionsApi: object

A custom viem extension for adding powerful Tevm specific actions to the client. These actions come preloaded with MemoryClient To add these actions use the extend method on a TevmClient with the tevmViemActions() extension.

Example

import { createTevmClient, tevmViemActions } from 'tevm'
const client = createTevmClient()
.extend(tevmViemActions())

Type declaration

tevm

tevm: TevmNode & Eip1193RequestProvider

tevmCall

tevmCall: TevmActionsApi["call"]

tevmContract

tevmContract: TevmActionsApi["contract"]

tevmDeploy

tevmDeploy: TevmActionsApi["deploy"]

tevmDumpState

tevmDumpState: TevmActionsApi["dumpState"]

tevmGetAccount

tevmGetAccount: TevmActionsApi["getAccount"]

tevmLoadState

tevmLoadState: TevmActionsApi["loadState"]

tevmMine

tevmMine: TevmActionsApi["mine"]

tevmReady

tevmReady: TevmNode["ready"]

tevmScript

tevmScript: TevmActionsApi["script"]

tevmSetAccount

tevmSetAccount: TevmActionsApi["setAccount"]

Defined in

packages/memory-client/src/TevmViemActionsApi.ts:16