InfrastructureLetter: S
What is Smart Contract?
Definitive Definition
A smart contract is a self-executing digital agreement with the terms of the contract directly written into immutable lines of code. It runs autonomously on a blockchain, automatically executing state changes or token transfers when predetermined conditions are verified.
In-Depth Architectural & Economic Analysis
First conceptualized by computer scientist Nick Szabo and popularized by Ethereum, smart contracts eliminate counterparty risk and intermediate legal enforcement. Once deployed to a blockchain address, their logic cannot be censored or modified by any single entity.
Core Characteristics & Mechanism
- Self-executing, deterministic, and autonomous operation.
- Immutable once deployed to the decentralized ledger.
- Transparent code publicly auditable by anyone on a block explorer.
- Powers the entire Decentralized Finance (DeFi) and Web3 ecosystem.
Practical Application Scenario:
An escrow smart contract automatically releases funds to a seller only after an oracle confirms a parcel has been delivered to the buyer.
Related Glossary Entries in Infrastructure
Blockchain
A blockchain is a distributed, immutable digital ledger of cryptographically linked blocks of data shared across a peer-to-peer network of computer nodes. Each block contains a cryptographic hash of the previous block, a timestamp, and verified transaction records, preventing retrospective alteration.
Gas Fee
A gas fee is the transaction fee paid by a crypto user to network validators or miners to compensate them for the computational power required to process, validate, and execute transactions or smart contracts on a blockchain network like Ethereum.
Layer 2 (L2)
A Layer 2 (L2) is a secondary protocol built on top of a base Layer 1 blockchain (such as Ethereum) designed to significantly increase transaction throughput and lower fees by processing transactions off-chain and settling compressed cryptographic proofs back to Layer 1.