A smart contract is a computer algorithm designed for conclusion and execution of traditional commercial agreements on blockchain.
Smart contracts define in code and automate execution of the obligations the parties have committed to in a commercial agreement. A smart contract runs on a decentralized platform and executes automatically when triggered by predetermined conditions — which means that, once published, such contract will exist and self-execute for as long as the platform itself exists.