Glossary

Virtual Machine

A virtual machine, in blockchain, is the standardized execution environment that every node runs to process smart contracts identically — a software-defined computer whose behavior is specified so precisely that thousands of independent machines, on different hardware and operating systems, compute exactly the same results from the same transactions. This determinism is what allows a decentralized network to agree on the outcome of running arbitrary code.

The blockchain VM is deliberately constrained compared to a general-purpose computer: it is sandboxed (contracts cannot access the host machine, files, or the internet), metered (every instruction costs gas, preventing infinite loops and spam), and deterministic (no randomness or clock reads that could differ between nodes). Contract code is compiled to the VM's bytecode and stored on-chain; when a transaction calls the contract, each node's VM executes that bytecode and applies the identical state changes. The Ethereum Virtual Machine (EVM) is by far the most widespread, so much so that many competing chains implement it for compatibility — but alternatives exist: Solana runs a VM based on eBPF executing programs compiled from Rust, and several newer chains use WebAssembly-based VMs or the Move language's VM (Aptos, Sui) designed around safer asset handling.

A common misconception is that the virtual machine is a single computer running somewhere; it is a specification executed locally and redundantly by every validating node, and that redundancy — everyone re-running everything — is precisely why on-chain computation is expensive and why scaling designs like rollups try to prove execution once rather than repeat it everywhere.