Smart contract
In short: What is Smart contract?
A smart contract is a program stored on a blockchain that executes automatically, without an intermediary, when its predefined conditions are met.
Explanation
Despite its name, it is code rather than a legal contract: it stores rules and state, and every node on the network executes it identically. Once deployed, the code is typically immutable.
That immutability is both its strength and its risk. Participants can be sure the rules apply equally to everyone, but bugs are hard to patch after deployment, which is why smart contracts undergo thorough testing and independent security audits before launch.
Example: an escrow smart contract keeps funds locked until the buyer confirms delivery, then releases the payment to the seller automatically.