Skip to content
Follow our new twitter account @tevmtools

Tevm docs

Next-generation toolset for building Ethereum applications in TypeScript

Try now on Stackblitz!

  • Select > Typescript: Select Typescript version: Use Workspace Version in the editor to enable the Tevm compiler upon opening the stackblitz.
  • For best results open in stackblitz

Features

Powerful Tevm memory devnet

Execute Solidity directly in your TypeScript code without the need for an external RPC. EVM execution and forking akin to anvil

Familiar Viem actions api

Tevm is built on top of the Viem api and plugs right into your existing Viem/Wagmi applications. Adapters exist for Ethers.js as well.

Solidity imports

Importing solidity files directly into TypeScript. No need to set up complicated build pipelines. Just import the contract from your repo or node_modules. Support for generating from a live deployment coming soon.

Runs in all environments

Tevm runs in the browser, node.js, and bun. Everything you could only previously do in other languages or on the server is now possible everywhere JavaScript runs.