Ethereum Basics and EVM
Explore the Ethereum network, its role in smart contracts, and the functionality of the Ethereum Virtual Machine (EVM).
Ethereum Basics and EVM is a free Blockchain Smart Contracts with Solidity lesson on CoddyKit — lesson 2 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Blockchain Smart Contracts with Solidity learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Welcome to Ethereum
Ethereum is more than a coin - it's an open, decentralized platform for running smart contracts and building decentralized apps (dApps).
Ether (ETH) and Gas
Every operation on Ethereum costs a fee paid in Ether (ETH). Gas measures the computational work a transaction needs - think of it as fuel, paid in ETH.
Ethereum Accounts
Ethereum has two account types: EOAs, controlled by a private key (a person), and contract accounts, controlled by their deployed code. Both have an address and hold ETH.
Ethereum Transactions
A transaction is a signed message between accounts. It can transfer ETH, deploy a new contract, or call a function on an existing one - and always costs gas.
What are Smart Contracts?
Smart contracts are programs on the blockchain that run automatically when conditions are met. They enforce agreements without intermediaries, and once deployed they're immutable.
Introducing the EVM
The Ethereum Virtual Machine (EVM) is the runtime that executes smart contracts - a single global, decentralized computer shared by the whole network.
EVM's Role: Executing Contracts
Your Solidity contract is compiled to bytecode, which the EVM interprets and runs. Every node runs the EVM identically, so results match across the network.
EVM: Bytecode & Opcodes
The EVM runs low-level opcodes like ADD, PUSH, and MSTORE. Your Solidity compiles down to these, and calling a contract executes the right opcode sequence.
Gas and EVM Execution Cost
Every opcode has a gas cost. This stops infinite loops and spam - and if a transaction runs out of gas it reverts, undoing changes while still charging the gas spent.
Benefits of the EVM
The EVM gives smart contracts determinism (same code, same result on every node), sandboxed isolation, and security via gas limits that block resource-exhaustion attacks.
EVM Quick Check
Test your understanding of the Ethereum Virtual Machine.
Recap: Ethereum & EVM
Recap: Ethereum runs smart contracts via the EVM, paid for in ETH and gas. EOAs and contract accounts interact through signed transactions executed as bytecode.
Frequently asked questions
Is the “Ethereum Basics and EVM” lesson free?
Yes — the full text of “Ethereum Basics and EVM” is free to read here on the web, and the Blockchain Smart Contracts with Solidity course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Blockchain Smart Contracts with Solidity course, upgrade to CoddyKit PRO.
What will I learn in “Ethereum Basics and EVM”?
Explore the Ethereum network, its role in smart contracts, and the functionality of the Ethereum Virtual Machine (EVM). You practise Blockchain Smart Contracts with Solidity with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Blockchain Smart Contracts with Solidity?
No prior experience is required. Blockchain Smart Contracts with Solidity on CoddyKit is structured for beginners through advanced learners; this is — lesson 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Ethereum Basics and EVM” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Blockchain Smart Contracts with Solidity lesson?
Yes. Every Blockchain Smart Contracts with Solidity lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- What is Blockchain Technology?
- Ethereum Basics and EVM
- Your First Solidity Contract
- Wallets, Keys, and Transactions