Crypto · Beginner · 4 min

Ethereum and smart contracts

You can explain how Ethereum differs from Bitcoin, what smart contracts do, and which risks come with code that runs on its own.

Money that runs code

Bitcoin was built to move money. Ethereum, launched in 2015, was built to do more: to run programs on a blockchain, so that agreements could execute themselves without a company in the middle.

That idea created most of what people now call crypto beyond bitcoin: tokens, stablecoins, trading apps without operators, and many projects that no longer exist. This lesson explains how Ethereum works and where its particular risks lie.

Smart contracts, gas, stake

Comparison Bitcoin is digital money secured by proof of work with limited scripting; Ethereum runs programs, uses proof of stake and hosts tokens and applications. Bitcoin Digital money Proof of work Limited scripts Ethereum Runs programs Proof of stake Tokens + apps

Smart contracts. A smart contract is a program stored on the blockchain that runs automatically when certain conditions are met. Ethereum describes smart contracts as its core functionality. They can:

Once deployed, a contract runs exactly as written. Nobody can stop it from making a mistake that is in its code.

Gas. Every operation on Ethereum costs a gas fee, paid in its native coin, ether. Fees compensate those who process transactions and rise when the network is busy.

Proof of stake. In September 2022, Ethereum switched from proof of work to proof of stake in an upgrade called the Merge. Validators now lock up ether to secure the network instead of competing with computing power. According to ethereum.org, this cut Ethereum's energy use by about 99.95%. It did not make the network faster or fees cheaper.

The programmable design has costs. More code means more ways to make mistakes. Bugs in smart contracts have been exploited many times, and because confirmed transactions are hard to reverse, losses usually stand. Code audits reduce risk but do not remove it.

Code is law, bugs too

A fictional lending app on Ethereum holds 40 million in deposits in a smart contract. Its code has passed an audit.

Some projects try to recover funds by negotiating with attackers. Often, the money is simply gone.

Common mistakes

The takeaway

Ethereum is a blockchain that runs programs called smart contracts. They power tokens and apps, and their bugs can be costly.

Check yourself

Quick quiz

4 questions. Instant feedback, nothing is saved.

  1. 1Tap the blockchain built to run general programs.

    Tap the chart.

    Comparison Chart for the question: Tap the blockchain built to run general programs. Bitcoin Digital money Proof of work Limited scripts Ethereum Runs programs Proof of stake Tokens + apps

    Ethereum lists smart contracts as its core functionality: programs that run on the blockchain.

  2. 2What happened to Ethereum's energy use after the Merge in September 2022?

    The switch from proof of work to proof of stake removed the energy-hungry mining.

  3. 3What is a gas fee on Ethereum?

    Every operation costs gas, paid in ether. Fees rise when the network is busy.

  4. 4A smart contract has a bug that lets attackers withdraw funds. What usually happens?

    Code runs exactly as written. If it is wrong, the loss usually stands.

of 4 correct.

Sources