IFCCI

Ethereum Fundamentals

What is a Smart Contract?

4 min readLesson 7 of 11
64%

Learning Objectives

  1. 1Define what a smart contract is and how it functions on the Ethereum platform
  2. 2Understand the role of the Ethereum Virtual Machine (EVM) in executing smart contracts
  3. 3Recognize the key properties of smart contracts: deterministic, immutable, and transparent
  4. 4Explain how smart contracts eliminate the need for intermediaries in agreements

Ethereum: The Smart Contract Platform

Ethereum is often referred to as a smart contract platform — but what does that actually mean?

Let’s break it down.

A platform (or computing platform) is simply an environment where software programs can be run. Ethereum serves as a digital ecosystem where developers can build and execute programs — specifically, smart contracts — on a global, decentralized network.

What Is a Smart Contract?

Despite the name, smart contracts aren’t necessarily “smart,” nor are they legal “contracts” in the traditional sense.

A more accurate term might be “automated programs,” but hey — we don’t get to name everything.

The phrase smart contract was coined by computer scientist Nick Szabo in the late 1990s. He compared them to vending machines:

Insert coins, select your item, and the machine automatically delivers the goods — no middlemen, no trust required.

That’s the core idea. Smart contracts are like digital vending machines. When specific conditions are met, they execute predefined actions — all without human intervention.

How Smart Contracts Work on Ethereum

In Ethereum, a smart contract is a set of coded instructions that live at a specific address on the blockchain. Once deployed, anyone can interact with it, and — assuming the right conditions are met — the contract will automatically execute the relevant actions.

These contracts are:

  • Deterministic — they produce the same result every time when given the same input
  • Immutable — once deployed, the code can’t be changed
  • Transparent — the code is visible on the blockchain and can be audited by anyone

Smart contracts essentially automate trust. They allow parties to agree on terms that are enforced by code — not by courts, companies, or intermediaries.

So… What Powers All This? Enter the EVM

To run smart contracts on every Ethereum node around the world, you need a consistent environment. That’s where the Ethereum Virtual Machine (EVM) comes in.

The EVM is software that acts like a virtual computer inside every Ethereum node. It creates a uniform environment to run smart contracts regardless of the actual hardware, operating system, or setup of the computer it’s running on.

This abstraction is crucial. Without it, you’d have to rewrite the contract for every type of device or OS — which would be a nightmare.

Thanks to the EVM, Ethereum contracts can be written once and executed anywhere — a principle known as WORA (“Write Once, Run Anywhere”).

Why the EVM Is a Big Deal

The EVM isn’t just a container for running programs — it’s also Turing-complete, which in computer science means it can, in theory, run any computation, given enough time and resources.

That opens the door to building all sorts of applications — from games and financial tools to governance systems and marketplaces — directly on the Ethereum blockchain.

Here’s how it works:

  1. Developers write smart contracts in high-level programming languages like Solidity, Vyper, or Serpent
  2. This source code is compiled into bytecode — a machine-readable format
  3. The bytecode is deployed to the Ethereum blockchain
  4. The EVM reads and executes the bytecode across the network

This system allows Ethereum to go beyond simple value transfers (like Bitcoin) and support decentralized applications — or dApps.

In Summary

  • Smart contracts are self-executing pieces of code stored on the Ethereum blockchain.
  • They follow a “set-it-and-forget-it” logic — once deployed, they run automatically when triggered.
  • The EVM ensures that all nodes in the Ethereum network can run these contracts consistently, no matter what computer or system they’re using.
  • This makes Ethereum a powerful and flexible platform for building trustless, decentralized apps.

Next up? Let’s explore what dApps are, and how they’re changing the way we think about software.

Key Takeaways

  1. 1Smart contracts are self-executing programs stored on the blockchain that automatically run when predefined conditions are met
  2. 2The concept was coined by Nick Szabo in the 1990s, comparing them to vending machines that deliver goods without intermediaries
  3. 3The Ethereum Virtual Machine (EVM) provides a consistent environment for smart contracts to run on every node in the network
  4. 4Smart contracts are written in languages like Solidity, compiled to bytecode, and deployed to the blockchain where they run permanently
  5. 5These contracts serve as building blocks for decentralized applications (dApps), DeFi protocols, and token systems on Ethereum

Knowledge Check

1. What is a smart contract?