Skip to main content
Install Voltaire, run a complete TypeScript example, and pick the import style that fits your runtime.

Prerequisites

  • Runtime: Node.js 18+, Bun 1.1+, Deno, or any modern browser
  • TypeScript: 5.0+ recommended (strict: true)

Installation

Prefer importing from "voltaire" instead of "@tevm/voltaire"? Install with an alias: pnpm add voltaire@npm:@tevm/voltaire (or npm install voltaire@npm:@tevm/voltaire). All subpath imports work identically under the alias.

Your First Script

Create hello.ts and run it with bun hello.ts or npx tsx hello.ts:

Choosing an Import Path

Voltaire exposes four entry styles. Start with the root or per-module subpath, and switch to WASM or Native FFI when profiling shows crypto or encoding is hot. Verified module subpaths include @tevm/voltaire/Address, /Abi, /Hex, /Hash, /Bytes, /Rlp, /Transaction, /Uint, /Denomination, /Bytecode, /Opcode, /Siwe, /Ens, /Keccak256, /Secp256k1, /SHA256, /EIP712, /Bls12381, /BN254, /KZG, /evm, /precompiles, /jsonrpc, /provider, /contract, and /utils.
Native FFI (@tevm/voltaire/native) requires Bun. On Node.js and browsers, use @tevm/voltaire or @tevm/voltaire/wasm.

Where to Go Next

Tutorials

Five hands-on walkthroughs: addresses, ABI calldata, EIP-712 permits, EIP-1559 transactions, and custom Skills.

Core Concepts

Understand branded types, data-first design, WASM/FFI runtimes, and error handling.

API Reference

Concise specifications and method tables for every primitive, curve, hash, and EVM instruction.

Playground

Run Voltaire code directly in your browser with zero setup.