Smart Contract
A smart contract is self-executing code deployed on a blockchain that automatically enforces the terms of an agreement when predefined conditions are met, without requiring a trusted intermediary.
Definition
A smart contract is self-executing code deployed on a blockchain that automatically enforces the terms of an agreement when predefined conditions are met, without requiring a trusted intermediary.
Overview
Smart contracts run on programmable blockchains, most notably Ethereum, where they are typically written in a language such as Solidity, compiled to bytecode, and deployed to the network at a fixed address. Once deployed, their logic cannot be silently changed, and any interaction with them — sending funds, calling a function, updating state — is itself recorded as a transaction on the blockchain. Because execution is deterministic and verified by every node that processes the transaction, smart contracts let strangers transact according to agreed rules without relying on a bank, escrow agent, or other intermediary to enforce the terms. This is the foundation for decentralized applications and much of the Web3 and decentralized finance ecosystem, from token issuance to automated lending markets. The tradeoff is that bugs or oversights in a smart contract's code are also enforced exactly as written, which has led to high-profile exploits when contracts contained unintended logic errors — making rigorous auditing an essential part of smart contract development.
Key Concepts
- Code deployed on-chain that executes automatically when its conditions are met
- Immutable once deployed, barring specific upgrade patterns built in by the developer
- Deterministic execution verified independently by every validating node
- Removes the need for a trusted intermediary to enforce an agreement
- State changes and fund transfers are recorded transparently on the ledger
- Composable — one contract can call and build on another
Use Cases
Frequently Asked Questions
From the Blog
Internet of Things: How Everyday Devices Get Smart
The Internet of Things (IoT) connects everyday physical devices to the internet so they can collect data and be controlled remotely. This guide explains how IoT devices work, the layers behind them, and where the technology shows up in daily life.
Read More AI & TechnologyWhat Are SMART Goals? A Framework That Works
SMART goals are objectives defined to be Specific, Measurable, Achievable, Relevant, and Time-bound so progress can actually be tracked. This guide breaks down each letter of the framework with concrete examples you can apply immediately.
Read More ProgrammingUnderstanding APIs: A Beginner Friendly Guide
An API is a contract that lets two programs talk to each other. Learn what APIs are, how REST APIs work, and how to make your first request in plain terms.
Read More Certifications & GuidesTableau Certification: Paths and Free Prep Resources
Confused about Tableau certification? Compare the Tableau certification paths, learn which credential to pick, and find free prep resources to study smart.
Read More