Search⌘ K
AI Features

Ethereum Virtual Machine (EVM)

Explore the core functions of the Ethereum Virtual Machine, including different transaction types and how smart contracts are deployed and executed. Understand the role of gas in preventing infinite computation and ensuring fair transaction processing. This lesson provides insight into EVM's single-threaded nature, Turing completeness, and the mechanisms that secure Ethereum's decentralized network.

Ethereum handles three types of transactions:

  • Regular transaction: A cryptocurrency transfer from one account to another.

  • Contract deployment transaction: A special transaction used to upload a smart contract code into the world state.

  • Contract execution transaction: A transaction used to execute a deployed smart contract computation.

At a higher level, the Ethereum Virtual Machine (EVM) is part of the Ethereum ecosystem in charge of handling the deployment and execution of the smart contracts (second and third bullets above).

The virtual machine

The EVM is present in every Ethereum node and allows a level of isolation for the physical host computer.

It is a computation engine agnostic of the node’s hardware, operating system, or software providing a runtime environment for smart contracts. By the way, the abstraction provided by the EVM allows large compatibility across a variety of nodes’ systems.

Ethereum EVM
Ethereum EVM

The EVM executes programs written in bytecode, a low-level programming language with a particular set of instructions that can be executed. Bytecode is not ...