Skip to the lesson
Back to the library
Lesson 381Digital assets3 min readLast reviewed 21 November 2026

More digital assets lessonsAll lessons

PROGRAMMABLE MONEY

Ethereum and smart contracts: code that holds money.

What Ethereum is, how smart contracts work, what gas fees pay for, and why a programmable blockchain brings new uses and new risks.

See the example
Ethereum and smart contracts: code that holds money. — photo illustration
381 / PROGRAMMABLE MONEYPhoto illustration
01

The idea

Bitcoin showed that a network of computers could keep a shared record of who owns what without a bank in the middle. Ethereum, launched in 2015, took the next step. It added a way to run programs on that shared record. These programs are called smart contracts.

A smart contract is code that holds money and follows fixed rules. If certain conditions are met, it moves funds automatically. No clerk approves it and no office can close early. A common comparison is a vending machine: put in the right coin, press the button, and the machine delivers without a shopkeeper.

At a glance
Ethereum and smart contracts: code that holds money.
02

Ether and gas

Ethereum's own currency is ether, or ETH. It is used to pay for the computing work the network does. Every action, from sending ETH to trading on an exchange built on Ethereum, costs a fee called gas.

Gas is priced by demand. When many people want to use the network at once, fees rise; when it is quiet, they fall. Complex actions use more gas than simple ones. Part of each fee is burned, which permanently removes some ETH from supply, and part goes to the validators who process transactions.

03

What smart contracts are used for

Almost every major crypto service outside Bitcoin runs on smart contracts, either on Ethereum or on networks that copy its design.

UseWhat the contract does
TokensKeeps track of who owns each unit of a coin or stablecoin
ExchangesSwaps one token for another using pooled funds
LendingHolds collateral and pays interest to lenders
NFTsRecords ownership of unique digital items
Tokenised assetsRepresents bonds, funds or property on-chain
04

Why code is both strength and weakness

Because the rules are public and run the same way for everyone, users do not need to trust a company to follow them. Anyone can read the code and check what it will do. Transactions settle in minutes, at any hour, across borders.

The flip side is that code does exactly what it says, including its mistakes. If a programmer leaves a flaw, an attacker can use it to drain funds. Billions of dollars have been lost this way over the years. Once a transaction is confirmed, there is usually no bank or court that can simply reverse it.

05

The Merge and proof of stake

In September 2022 Ethereum switched how it secures the network, an event known as the Merge. It moved from mining, which uses large amounts of electricity, to proof of stake, where validators lock up ETH as a deposit. The change cut Ethereum's energy use by more than 99%, according to the Ethereum Foundation.

Proof of stake also changed how new ETH is issued. Validators earn rewards for honest work and can lose part of their deposit for cheating or going offline.

06

Fees and scaling

Ethereum's main network can handle only a limited number of transactions per second. In busy periods this has pushed fees to tens of dollars for a single action. To cope, many users now transact on layer-2 networks, which bundle many transactions together and post a summary to Ethereum. Fees there are usually a few cents.

07

Risks for ordinary users

The biggest risks are not about Ethereum itself but about what is built on it. A new token may have hidden rules that stop you selling. A website can ask you to approve a contract that then empties your wallet. Before signing anything, check the address, use well-known services, and never approve requests you do not understand.

08

A realistic scenario

Mariam wants to try a lending app built on Ethereum. She first reads which audits the contracts have had and how long the app has run without incidents. She deposits a small amount, checks the gas fee before confirming, and keeps most of her savings elsewhere. When fees spike one evening, she simply waits for a quieter time.

09

Before you use a smart contract

Ask yourself
  • Is the service well known and has its code been audited?
  • Do I understand what the approval request will allow?
  • What will the gas fee be right now?
  • Can I afford to lose this amount if the code fails?
  • Am I on the genuine website, not a copy?
10

The short version

Ethereum is a blockchain that runs programs. Smart contracts let money move by rules rather than by people, which powers tokens, exchanges and lending. That brings speed and openness, but code bugs and scams can cost money that cannot be recovered.

Worked example

Illustration: a simple escrow smart contract holds 1 ETH from a buyer. When the seller's delivery is confirmed by an agreed data source, the contract releases the ETH to the seller automatically. If no confirmation arrives in 30 days, it returns the ETH to the buyer.

The idea to take with you

Ethereum lets programs hold and move money automatically. That makes new services possible, but a bug in the code can lose funds with no one to reverse it.

Sources & assumptions

Primary educational reference

ethereum.org · Intro to Ethereum ↗

Reviewed November 21, 2026. Examples are hypothetical illustrations in AED or USD. Educational content, not personalised investment, legal or tax advice.