Ethereum and smart contracts
Ethereum went live in 2015. Like Bitcoin it has its own coin, Ether (ETH), but its main idea goes further: the blockchain can run programs, so-called smart contracts.
What a smart contract does
A smart contract is code stored on the blockchain that executes automatically when certain conditions are met – for example "swap token A for token B at the current pool price". Nobody can stop or change it afterwards, unless the code itself provides for that.
What is built on it
- Tokens: stablecoins, governance tokens, tokens of other projects (standard ERC-20).
- Decentralised exchanges and lending protocols (DeFi).
- NFTs: unique tokens, for example linked to a digital item – owning the token does not automatically give rights to the item.
Gas: the fee for computation
Every transaction on Ethereum costs a fee in ETH. It is measured in gas units: the fee depends on how much computation the transaction needs and how busy the network is. Merely reading data is free. A failed transaction can also cost gas.
Proof of stake
Since September 2022 ("The Merge"), Ethereum no longer uses mining but proof of stake: validators deposit ETH as security and lose part of it if they break the rules.
Risks
Code can contain errors. Bugs and exploited vulnerabilities in smart contracts have repeatedly led to high losses. "On the blockchain" does not mean "audited" or "safe".
Key takeaway: Ethereum is a platform for programs and tokens – ETH is the fuel that pays for using it.