A contract is a binding agreement that defines obligations, permissions, and outcomes between parties. In cryptocurrency and blockchain systems, the term often refers to a smart contract, which is a program deployed on a blockchain that can automatically execute actions when predefined conditions are met.
Contracts in crypto, from legal agreements to code
Traditional contracts are enforced through legal systems and intermediaries, such as courts, brokers, or escrow agents. Smart contracts shift much of that enforcement into software. Instead of relying on a trusted third party to interpret and carry out terms, the blockchain network validates the contract’s rules and state changes. For example, a token contract can define how new tokens are minted, how transfers work, and what restrictions apply, and every network participant can verify those rules by inspecting the contract code.
How smart contracts work on a blockchain
A smart contract lives at an on-chain address and maintains its own data, such as balances, ownership records, or configuration settings. When someone sends a transaction to the contract, the network executes the contract’s code and updates the blockchain state if the transaction is valid. This enables applications like decentralized exchanges, where trades can be matched and settled through contract logic, or lending protocols, where collateral and repayment rules are enforced automatically. Many real-world events still occur off-chain, so projects may use oracles, which are services that feed external data, like interest rates or sports results, into contracts.
Risks and why the concept matters
Because smart contracts can control funds and execute irreversible actions, bugs, poor design, or malicious code can lead to losses. Audits, testing, and careful permission management are critical. Understanding what “contract” means in crypto helps users evaluate how decentralized applications operate, who controls key functions, and what guarantees are provided by code versus by legal enforcement, making it a foundational concept across DeFi, NFTs, and broader Web3 infrastructure.