A smart contract is a self-executing contract with terms directly written into code. It automatically executes when predetermined conditions are met, without requiring intermediaries.
Key characteristics:
Immutable: Once deployed, code cannot be changed (unless designed with upgradability)
Deterministic: Same input always produces same output
Autonomous: Executes automatically when conditions are met
Transparent: Code is publicly visible on the blockchain
Example use case: An escrow contract that automatically releases funds when both parties confirm completion of a service.
Rewriting in plainer words…
This answer doesn't lend itself to a diagram - it reads best . No credits were charged.