Voltaire provides runtime safety without third-party validation libraries. Every primitive validates at construction, giving you type-safe, runtime-verified values.
Branded types add compile-time tags that prevent mixing incompatible types:
Copy
Ask AI
import { Address, Bytecode } from '@tevm/voltaire'function simulateTransfer(to: Address, bytecode: Bytecode) { }const address = Address('0x742d35Cc6634C0532925a3b844Bc9e7595f51e3e')const bytecode = Bytecode('0x60806040')simulateTransfer(bytecode, address)// Error: Type 'Bytecode' is not assignable to type 'Address'