What Is Ethereum?
- A blockchain that can run programs called smart contracts
- Its coin is Ether (ETH), used to pay fees and secure the network
- Launched in 2015, with ideas from Vitalik Buterin and co-founders
- Often described as a world computer that nobody owns
Bitcoin Versus Ethereum
| Bitcoin | Ethereum | |
|---|---|---|
| Main goal | Digital money, store of value | Programmable platform for apps and tokens |
| Model | UTXO | Accounts and balances |
| Scripting | Simple, limited | Full smart contract languages (Solidity) |
| Block time | About 10 minutes | About 12 seconds (a slot) |
| Consensus | Proof of work | Proof of stake since 2022 |
Two Kinds of Accounts
| Account | Controlled by | Has code? |
|---|---|---|
| Externally owned account (EOA) | A private key (a person) | No |
| Contract account | Its own code | Yes |
Each account has an address, an ETH balance and a nonce (count of transactions sent, which stops replays). Contract accounts also have code and storage.
Units of Ether
| Unit | Value |
|---|---|
| wei | Smallest unit. 1 ETH = 10^18 wei |
| gwei | 1 gwei = 10^9 wei. Used to quote gas prices |
| ether | The main unit |
Transactions
A transaction can send ETH, call a contract function or deploy a contract. It contains: recipient, value, data, gas limit, fee settings and a signature.
Gas
Every operation costs gas, a unit measuring computation. Gas stops infinite loops and pays validators.
- Base fee is set by the protocol from network demand and is burned (EIP-1559)
- Priority tip goes to the validator, so a higher tip is included sooner
- Gas limit is the most gas you allow. Unused gas is returned. If you run out, the transaction fails but you still pay for the gas used
The EVM
- The Ethereum Virtual Machine runs contract bytecode the same way on every node
- Solidity is compiled to EVM bytecode
- Because every node runs the code, results are deterministic and verified by all
State
Ethereum is a state machine. The state (all balances, code, storage) changes only through valid transactions in blocks.
Practice
- Difference between an EOA and a contract account?
- Compute the fee for 50,000 gas at 30 gwei
- Why does a failed transaction still cost gas?
Conclusion
Ethereum runs smart contracts on the EVM, uses accounts and gas, and has moved to proof of stake. Gas pays for computation and protects against abuse.

