🚨 Active Supply Chain Attack:node-ipc Package Compromised.Learn More
Socket
Book a DemoSign in
Socket

tevm

Package Overview
Dependencies
Maintainers
1
Versions
123
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tevm

A typesafe Ethereum Virtual Machine (EVM) toolkit written in TypeScript

latest
Source
npmnpm
Version
1.0.0-next.149
Version published
Maintainers
1
Created
Source

TypeScript programming with the full power of the Ethereum Virtual Machine

CI Version

tevm-monorepo

Tevm is an ethereum development toolkit that offers

Tevm runs in all environments

Try it out

Try out our online frontend example on stackblitz

Visit Docs for docs, guides, API and more! 📄

Code example

Tevm scripting is a simple yet powerful way to program.

  • Write a solidity script HelloWorld.s.sol
// SPDX-License-Identifier: MIT
pragma solidity >0.8.0;

contract HelloWorld {
    function greet(string memory name) public pure returns (string memory) {
        return string(abi.encodePacked("Hello ", name, "!"));
    }
}
  • Import the solidity file into a JavaScript or TypeScript file. No need to compile it.
import { HelloWorld } from "./HelloWorld.sol";

console.log(HelloWorld.abi);
console.log(HelloWorld.bytecode);
import { HelloWorld } from "./HelloWorld.sol";
import { createMemoryClient } from "tevm";

const client = createMemoryClient();

const result = await tevm.script(HelloWorld.read.greate("World"));

console.log(result.data); // Hello world!

This is just a small subset of what Tevm offers. See docs for more information.

Contributing 💻

Contributions are encouraged, but please open an issue before doing any major changes to make sure your change will be accepted.

See CONTRIBUTING.md for contributing information

License 📄

Keywords

solidity

FAQs

Package last updated on 06 Oct 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts