Skip to main content

What is a smart contract? A program on Ethereum that runs its rules automatically

A smart contract is a program on Ethereum that enforces its rules through code. Learn how one is deployed, used and where its limits lie.

· By ZIPMEX · 6 min read

Ethereum's developer documentation, retrieved Dec. 3, 2026, describes a smart contract as a program on the Ethereum blockchain. It can define rules like a regular contract and enforce them automatically through its code. Once it is deployed, meaning published to the network, it runs as programmed, and no user controls it.

Key facts from Ethereum's developer documentation

  • Deletion: Contracts cannot be deleted by default. Interactions with them are irreversible.
  • Outside data: A contract alone cannot get real-world event information. Oracles ingest outside data and make it available to contracts.
Ethereum: key facts/ KEY FACTSEthereum: key factsKEY FACTA smart contract is simply a program that runs on theEthereum blockchain.KEY FACTSmart contracts can define rules like a regular contractand automatically enforce them via the code.KEY FACTSmart contracts are not controlled by a user; they aredeployed to the network and run as programmed.Source: Introduction to smart contracts | ethereum.org (ethereum.org), accessed Dec 3, 2026
Key-facts card with 3 facts from ethereum.org: A smart contract is simply a program that runs on the Ethereum blockchain; Smart contracts can define rules like a regular contract and automatically…; Smart contracts are not controlled by a user; they are deployed to the network….
Key facts as the sources state them. data: ethereum.org · ZIPMEX key-facts diagram; data: ethereum.org

How a contract is built and deployed

Ethereum's documentation says a contract must be compiled before it can be deployed. Compiling translates the code into a form the Ethereum Virtual Machine (EVM) can interpret and store. The EVM is the environment that executes contract code consistently across all Ethereum nodes, the computers that run the network. Deploying a contract is itself a transaction, so the developer pays gas, the network fee for each transaction. A simple transfer of ether (ETH), Ethereum's own currency, also requires gas.

Screenshot of the ethereum.org page with the cited passage highlighted
Screenshot of ethereum.org, captured Dec 4, 2026. Highlighted: the passage this section cites.

Using a contract

After deployment, users interact with a contract by submitting a transaction, a request sent to the network, that executes a function defined on it. Gas is required for any transaction that involves a smart contract, so each transaction that calls a contract carries a fee. A validator, the party that adds transactions to blocks, must pick up the transaction and include it in a block to verify it.

Hypothetical example

Editorial analysis: Suppose a developer deploys a contract that releases a token only when a user's transaction calls its function. This is a hypothetical example, not a described product. In this example, the rule acts only when a user submits that transaction. The steps would be to compile the code, deploy it with gas, and then have a validator include the user's transaction in a block.

Why deployed code stays as it is

Editorial analysis: Ethereum's account documentation says a contract's code cannot be changed once it is deployed, unlike the other account fields. This is an inference from that statement: a flaw in deployed code cannot be edited out after deployment.

What the code cannot see

Ethereum's developer documentation says smart contracts alone cannot get information about real-world events. They cannot retrieve data from offchain sources, meaning data outside the blockchain. Oracles are tools that ingest offchain data and make it available to smart contracts.

Limits of a deployed smart contract/ KEY FACTSLimits of a deployed smart contractDELETIONBy default, smart contracts cannot be deleted, andinteractions with them are irreversible.CODE CHANGESOnce deployed, a contract's code cannot be changed, unlikethe other account fields.OUTSIDE DATASmart contracts alone cannot get information aboutreal-world events.Source: ethereum.org, accessed Dec 3, 2026
Diagram with three labelled facts: smart contracts cannot be deleted by default, a deployed contract's code cannot be changed, and smart contracts alone cannot get real-world event information.
Original ZIPMEX key-facts diagram with three limits of a deployed smart contract, drawn from ethereum.org documentation. · ZIPMEX diagram; data: ethereum.org

Check before you sign

Before you sign, check three things: whether the action calls a deployed contract, whether its result depends on outside data, and whether you expect the code to change or the action to be reversed later.

Check what your action touches

Does the rule apply to what you are about to do?

  1. Are you about to submit a transaction that calls a function on a deployed smart contract?

    Source: Introduction to smart contracts | ethereum.org (ethereum.org), accessed Dec 3, 2026
  2. Does the result depend on facts from outside the blockchain?

    Source: Introduction to smart contracts | ethereum.org (ethereum.org), accessed Dec 3, 2026
  3. Are you counting on the contract's code being changed, or on the action being reversed later?

    Source: Introduction to smart contracts | ethereum.org (ethereum.org), accessed Dec 3, 2026 · Ethereum accounts | ethereum.org (ethereum.org), accessed Dec 3, 2026
Not a call to a deployed contract

This checklist covers calls to a deployed contract. Deploying a contract is also a transaction, and it requires gas.

Source: Introduction to smart contracts | ethereum.org (ethereum.org), accessed Dec 3, 2026
Outside data needs an oracle

A smart contract alone cannot get real-world event information. An oracle supplies it, since oracles ingest offchain data and make it available to smart contracts.

Source: Introduction to smart contracts | ethereum.org (ethereum.org), accessed Dec 3, 2026
Deployed code stays as it is

A deployed contract's code cannot be changed. The contract cannot be deleted by default, and interactions with it are irreversible.

Source: Introduction to smart contracts | ethereum.org (ethereum.org), accessed Dec 3, 2026 · Ethereum accounts | ethereum.org (ethereum.org), accessed Dec 3, 2026
Plan for gas and validation

Gas is required for any transaction that involves a smart contract. A validator must include the transaction in a block to verify it.

Source: Transactions | ethereum.org (ethereum.org), accessed Dec 3, 2026

This checklist describes general Ethereum behaviour from its documentation, not advice about any particular contract.

Languages

Ethereum's developer documentation says Ethereum has developer-friendly languages for writing smart contracts. CoinFulcrum, a beginner's guide, calls Solidity, a programming language, the best-known one for Ethereum.

CoinFulcrum says a smart contract is not necessarily a traditional legal contract. The name does not settle whether a given contract also creates a legal agreement.

Analysis: what the documentation leaves open

The documentation explains how Ethereum contracts run. It does not show how any particular contract was written. For a reader, the practical questions are who wrote the code and who supplies any outside data. Public code you can check is one place to start.

A vending-machine comparison

Ethereum's documentation says a vending machine is perhaps the best metaphor for a smart contract, as described by Nick Szabo. The comparison is a metaphor, so it illustrates the idea and does not describe the network that runs the code.

Where to go next

Before signing any transaction, run it through the checklist above. A separate explainer covers what Ethereum is and how its currency, ETH, works.

Sources are Ethereum's developer documentation, retrieved Dec. 3, 2026, and one beginner guide from CoinFulcrum. Other blockchains are not covered.

Sources: Introduction to smart contracts | ethereum.org (ethereum.org), accessed Dec 3, 2026 · Ethereum Virtual Machine (EVM) | ethereum.org (ethereum.org), accessed Dec 3, 2026 · Transactions | ethereum.org (ethereum.org), accessed Dec 3, 2026 · Ethereum accounts | ethereum.org (ethereum.org), accessed Dec 3, 2026 · What Is a Smart Contract? Beginner’s Guide | CoinFulcrum (coinfulcrum.com), accessed Dec 3, 2026

ZIPMEX promotes trading on trade.zipmex.com. Promotions are labelled and kept separate from news coverage, which is selected and checked without regard to them. Perpetual futures are leveraged derivatives. Prices can move fast and you can lose all of your margin. Not available in every jurisdiction. Not investment advice.

Updated on Dec 4, 2026