A smart contract is a program stored on a blockchain that network participants execute under that blockchain’s rules. A transaction can trigger its code, which may read or update on-chain state or manage digital assets. The term “contract” describes the technology; by itself, it does not establish that the program is legally enforceable.
What is a smart contract?
A smart contract is software whose execution is connected to blockchain state. In practical terms, it contains programmed instructions that can act on assets or apply rules when invoked. On Ethereum, for example, a user can invoke a contract function by submitting a transaction to the contract’s address. The network processes transactions according to its consensus rules.
“State” means the information a blockchain records and carries forward. A contract can use that on-chain information when deciding what its instructions do. Its behavior is governed by the deployed code and the network’s rules, not by a person interpreting each request as it arrives.
The name can be misleading. A smart contract is not automatically a conventional legal contract, and calling code a “contract” does not answer questions about legal status or enforceability. Those questions depend on matters outside the technical definition.
How smart contracts execute on a blockchain
Execution begins when a user or another program submits a transaction that invokes the smart contract. On Ethereum, a transaction is a signed instruction that can transfer value or call contract code and change network state. Transactions include information such as the destination, value or contract data, and fee parameters, with details depending on transaction type.
The network processes the transaction under its protocol rules. Ethereum nodes use consensus to agree on new blocks and the continuing chain. A contract’s programmed actions may then change on-chain state—for example, updating a recorded value or managing an asset. The result is part of the network’s agreed state if the transaction is processed accordingly.
This is different from treating code as though it runs solely inside one user’s application. A blockchain’s participating nodes must follow that network’s execution and consensus rules. The specific mechanics are chain-dependent, so Ethereum’s transaction model should not be assumed to describe every blockchain.
A transaction’s inputs also matter. The code can only apply the rules it was written to apply to the information and state available during execution. When a contract handles assets, its programmed behavior and its inputs determine what actions it attempts; execution does not independently validate that the underlying business assumption is sound.
What smart contracts can do—and what they cannot do alone
Smart contracts can apply programmed rules to on-chain state and, in some systems, hold or manage on-chain assets. They can perform actions when invoked, including actions involving asset transfers. The code’s logic and the network’s execution rules determine what happens; a description of intended behavior is not a guarantee that the implementation will behave as intended.
A major boundary is information outside the blockchain. An Ethereum smart contract cannot directly obtain off-chain facts that are absent from deterministic blockchain state. To act on an external fact—such as a delivery update or a reported measurement—it needs that information to be supplied through an oracle or another transaction mechanism. The contract then acts on the supplied input; it does not independently confirm that an external event occurred.
That dependency matters because the contract’s result can only be as meaningful as the data and logic it receives. A program can execute according to its code and still produce an outcome that was not intended. The word “smart” does not mean that the software understands context or can correct flawed assumptions.
Smart contracts in decentralized applications
A decentralized application, or dApp, may use smart contracts for functions that depend on shared blockchain state. A user interface can help people interact with those functions, but the interface and the contract are different components. Not every part of an application necessarily runs on the blockchain.
This distinction helps locate responsibility. The contract governs the on-chain behavior encoded in its program; an application’s interface or other services may provide additional features around it. A displayed description or button does not, on its own, establish what the contract will execute. The relevant behavior is determined by the transaction and the code it invokes.
Smart contracts can also call or reuse other on-chain components through public interfaces. This composability allows a program to depend on other contracts, but each dependency brings its own behavior and assumptions. The existence of a blockchain-based function therefore does not mean the entire application has no external dependencies.
Important limitations and risks
Code can contain bugs, flawed assumptions, or behavior that produces unintended results for particular inputs. Because smart contracts can manage on-chain assets, an execution outcome may affect those assets. No general definition can establish that a specific contract is secure, correct, or recoverable.
Some account designs use multiple authorized owners and require a configured threshold of confirmations before a transaction can be executed. That describes one implementation pattern, not a universal property of smart contracts. Control and recovery arrangements depend on the particular system and its design.
The practical takeaway is to separate three questions: what the code is programmed to do, what the blockchain permits and records, and what external systems or people supply as inputs. A smart contract addresses the first two within a particular network’s rules; it does not by itself guarantee correct logic, reliable external information, or legal enforceability.
Sources and references
- Smart Contract Overview — Chainlink Documentation; retrieved 2026-10-19.
- Transactions — ethereum.org; retrieved 2026-10-19.
- Solidity Documentation — Solidity; retrieved 2026-10-19.
- How do Safe Smart Accounts work? — Safe Documentation; retrieved 2026-10-19.
- Technical intro to Ethereum — ethereum.org; retrieved 2026-10-19.