Self-executing code stored on a blockchain that automatically carries out an agreement's terms once its conditions are met — no lawyer, bank, or middleman needed to enforce it.

Fundamentals

What Are Smart Contracts

A smart contract is code deployed on a blockchain that automatically executes when its predefined conditions are met — for example, releasing payment the moment a delivery is confirmed, with no need for either party to trust the other or a middleman.

How They Execute

Once deployed, a smart contract's code is immutable and runs deterministically — the same input always produces the same output, and every node on the network re-executes and verifies it, which is what makes its behavior trustworthy without a central authority.

Platforms

Smart Contract Platforms

Ethereum popularized general-purpose smart contracts via the EVM (Ethereum Virtual Machine), now replicated across many chains; others like Solana, Cardano, and Tezos use their own execution environments with different trade-offs in speed, cost, and flexibility.

Use Cases

DeFi (Decentralized Finance)

Lending, borrowing, and trading protocols built entirely from smart contracts — letting people swap assets or earn interest without a bank, though also without the safety net a bank traditionally provides.

NFTs & Digital Ownership

Non-fungible tokens use smart contracts to represent unique ownership of a digital (or digitally-linked physical) asset — art, collectibles, event tickets, or the tokenized real-world assets covered elsewhere on this site.

DAOs (Decentralized Autonomous Organizations)

Organizations governed by smart contracts and member voting instead of a traditional management hierarchy — rules for spending funds or making decisions are encoded directly into the contract itself.

Risks & Safeguards

Smart Contract Risk

Because deployed code is largely immutable, bugs can be catastrophic and permanent — the 2016 DAO hack, which exploited a "reentrancy" bug to drain roughly $60 million in ETH, remains the canonical cautionary example and led to a contentious hard fork of Ethereum itself.

Auditing & Oracles

Serious projects pay for professional security audits and increasingly use formal verification to mathematically prove a contract behaves as intended. Since contracts can't natively see outside their own blockchain, oracles like Chainlink feed them real-world data (prices, weather, events) they'd otherwise have no way to access.