Glossary index › E

Ethereum Virtual Machine (EVM)

The Ethereum Virtual Machine (EVM) is the runtime environment built into the Ethereum blockchain that executes smart contracts - self-executing pieces of code deployed on the network. Every node participating in Ethereum runs the EVM to process transactions and independently verify contract results, and the EVM is deterministic, meaning the exact same input always produces the exact same output on every node, which is what lets thousands of independent computers agree on a single shared state.

For example, when a decentralized exchange's smart contract executes a token swap, the EVM runs that contract's underlying bytecode identically across every node on the network, so the trade's outcome can be independently verified and permanently recorded rather than trusted to a single central server. The EVM's design has become a de facto industry standard well beyond Ethereum itself: many other blockchains, including BNB Chain, Polygon, Avalanche's C-Chain, and various Ethereum "layer 2" networks like Arbitrum, are built to be "EVM-compatible," meaning they can run the same smart contracts and developer tools originally built for Ethereum. For crypto investors, EVM compatibility is a useful signal of a network's developer ecosystem and interoperability, since it means applications and liquidity can move between EVM-compatible chains more easily than to an entirely incompatible architecture.

The gas meter is the EVM's answer to a problem that has no general solution. A contract can contain a loop, and no program can reliably determine in advance whether an arbitrary loop will ever finish - so a network that executes whatever it is given could be stopped by a single contract that never terminates. The design charges for each individual operation instead, and the sender specifies a limit up front. When the limit is reached the execution halts and every state change it made is reversed, but the fee is kept. That is why a failed transaction still costs money: the network performed the work, and the payment is for the work rather than for the outcome.

Two further points clear up common confusions. Contracts are written in Solidity or, less often, Vyper, but neither reaches the chain: both compile to EVM bytecode, and it is the bytecode that is stored, executed and - unless the author publishes and verifies the source - all anyone can inspect. And compatibility is not connection. A chain that runs the same bytecode is a separate network with its own validators, its own fees and its own version of every token; moving value between it and Ethereum requires a bridge, which is a contract holding the original asset while an equivalent is issued elsewhere. Bridges have been the single largest source of losses in the sector, which is a direct consequence of how often the word compatible is read as though it meant connected.

What is the Ethereum Virtual Machine? The runtime environment built into the Ethereum blockchain that actually executes smart contracts. Every node on the network runs it.
Why does every node run the same thing? So results can be verified independently. The EVM is deterministic - identical input always produces identical output everywhere - which is how thousands of separate computers agree on one shared state.
Can you give an example? When a decentralised exchange's contract executes a token swap, every node runs that contract's bytecode identically, so the outcome is verified by the network and recorded permanently rather than trusted to one company's server.
What does EVM-compatible mean? That another blockchain runs the same instruction set, so contracts and developer tools built for Ethereum work there with little or no change. BNB Chain, Polygon, Avalanche's C-Chain and layer 2 networks such as Arbitrum are all EVM-compatible.
Why should an investor care? Because compatibility is a shortcut for developers and liquidity alike. An EVM chain can attract applications that already exist, while an incompatible architecture has to grow its own ecosystem from nothing.
What is gas in this context? The meter on the EVM. Every operation a contract performs has a set cost, and the total is what the sender pays in ETH - which is also what stops a faulty or malicious contract from running forever at the network's expense.
What languages are contracts written in? Mostly Solidity, sometimes Vyper. Both compile down to the same EVM bytecode, and it is the bytecode, not the source code, that the network stores and runs.
Is EVM compatibility the same as being connected to Ethereum? No, and this trips people up. A compatible chain is a separate network with its own validators and its own version of each token, so moving assets between it and Ethereum still needs a bridge.

By InsiderTicker Editorial Team · Last updated

All news on Crypto →