Skip to content
LogoLogo

Package overview

Most applications only need the umbrella tevm package alongside viem. Install individual @tevm/* packages only when building specialized adapters or minimizing dependencies.

pnpm add tevm viem

tevm subpath exports

Import pathBacking packagePurpose
tevmUmbrellacreateMemoryClient, createZevmEngine, createTevmNode, NativeRpcError, createContract, standalone tevm* actions, viem helpers, PREFUNDED_ACCOUNTS
tevm/node@tevm/nodeNative ZEVM Node-API wrapper (createZevmEngine, createTevmNode, NativeRpcError, types)
tevm/memory-client@tevm/memory-clientcreateMemoryClient, createTevmTransport, tevmViemActions, tevmReady
tevm/actions@tevm/actionsBrowser-safe typed RPC helpers (tevmCall, tevmContract, tevmDeploy, tevmDeal, tevmGetAccount, tevmSetAccount, tevmMine, tevmDumpState, tevmLoadState)
tevm/server@tevm/servercreateServer (HTTP + WS), createIpcServer, createHttpHandler, createWebSocketServer, createExpressMiddleware, createNextApiHandler
tevm/http-client@tevm/http-clientcreateHttpClient for connecting to a running TEVM HTTP server
tevm/common@tevm/commonViem chain presets (mainnet, optimism, arbitrum, base, …) and tevmDefault (foundry)
tevm/contract@tevm/contractcreateContract plus bundled fixtures (SimpleContract, ERC20, ERC721, ErrorContract, AdvancedContract)
tevm/predeploys@tevm/predeploysdefinePredeploy for typed predeploy descriptors
tevm/errors@tevm/errorsStructured JSON-RPC, EVM, and client error classes extending BaseError
tevm/utils@tevm/utilsABI/hex/RLP utilities, PREFUNDED_ACCOUNTS, PREFUNDED_PRIVATE_KEYS, serializeToJson
tevm/bundler/*@tevm/*-pluginBuild-time Solidity plugins (vite-plugin, rollup-plugin, esbuild-plugin, webpack-plugin, rspack-plugin, bun-plugin, base-bundler, compiler, config, solc)

Standalone ecosystem packages

PackagePurpose
@tevm/ethersTevmProvider (JsonRpcApiProvider subclass wired directly to native rpc())
@tevm/viemtevmViemExtension() — attaches client.tevm.* helpers onto any viem public client (browser-safe)
@tevm/mcpStdio Model Context Protocol server giving AI coding agents 14 isolated EVM & Solidity tools
@tevm/ts-pluginTypeScript language service plugin for .sol import resolution, typechecking, and NatSpec hover
@tevm/clitevm command-line tool (call, contract, deploy, mine, serve, dump-state, load-state, …)

Native engine dependency

@tevm/node loads @evmts/zevm (the native Zig Node-API addon combining ZEVM, Voltaire, and Guillotine Mini). There is no pure-JavaScript fallback engine; if the native addon is missing for your platform, createZevmEngine() throws immediately.

Next: Package reference index · Architecture · Migrating from the JS engine