Smart Contract
Pronunciation: SMAHRT KON-trakt
Definition
A smart contract is a program stored on a blockchain that executes defined rules when called by a transaction or another contract. It can maintain balances and enforce conditions without a traditional server deciding each outcome, but it cannot directly know real-world events unless trusted data is supplied.
Overview
Why Smart Contract matters
Ordinary payment applications depend on a business server to apply logic such as releasing funds after a condition is met. A smart contract can put selected rules on-chain so network participants independently execute and verify them. That design is useful for token transfers, exchanges and conditional transfers, but moves some risks from business operators to code, dependencies and transaction execution.
How it works
A developer deploys contract code and creates a contract address. A user who wants to change state constructs and signs a transaction calling one of its functions. Ethereum validators execute the call inside the Ethereum Virtual Machine, with fees based on the resources consumed. The result can change balances or storage and emit events that applications monitor. A read-only call can inspect existing state without recording a transaction. Contracts are deterministic with respect to the inputs and state available to them; they cannot simply fetch arbitrary external prices or confirm physical delivery themselves. External data services called oracles introduce additional trust and failure points. Upgradable contracts can also contain privileged administrative controls even when the underlying blockchain is decentralized.
Read calls, write calls and event evidence
A read call can query current contract storage without creating an on-chain transaction. A write call asks the network to execute code that may change state, usually consuming gas. This difference matters when a wallet displays an approval request or a customer claims to have made payment: a read-only balance check did not transfer any funds. In many token systems, payment monitors watch Transfer events emitted during successful contract execution, but should also handle unusual token implementations and contract failures. Contract upgradeability adds another question: who can change code behind a proxy and under what delay or approval process? A merchant accepting stablecoins should evaluate the token contract as an asset and governance dependency, separate from the gateway or checkout it uses.
A real-world payment example
A store accepts a token payment. The token balance is recorded by a token smart contract; a customer invokes the contract's transfer behavior rather than sending the network's native coin. A merchant payment system must check the correct contract address and emitted transfer data, not just assume that any transaction to the merchant address represents the intended token.
Limits and common misunderstandings
The phrase "smart contract" does not imply legal enforceability, bug-free behavior or automatic refunds. Bugs, compromised administrators, malicious tokens and unexpected interactions can cause losses. A transaction can be included in a block but a contract call may revert; inspect its execution status and relevant logs.
How it differs from related concepts
A smart contract is executable on-chain logic. A payment API is an interface provided by software. A legal contract is an agreement whose enforceability depends on law, not merely its code.
Explore further
Official background: technical documentation.
Related glossary terms: Token Contract Address, Token Allowance, Ethereum Mainnet.
Example
A store accepts a token payment. The token balance is recorded by a token smart contract; a customer invokes the contract's transfer behavior rather than sending the network's native coin. A merchant payment system must check the correct contract address and emitted transfer data, not just assume that any transaction to the merchant address represents the intended token.
Comparison
A smart contract is executable on-chain logic. A payment API is an interface provided by software. A legal contract is an agreement whose enforceability depends on law, not merely its code.
Key Takeaway
A smart contract is a program stored on a blockchain that executes defined rules when called by a transaction or another contract.
Sources
- Ethereum Foundation Documentation: Transactions — Ethereum Foundation (2026-07-30)
- Ethereum Documentation: Smart Contracts — Ethereum Foundation (2026-07-30)
- Bitcoin Developer Guide: Block Chain — Bitcoin.org (2026-07-30)