Smart contracts are computer codes, that are stored inside the Blockchain, they are self-executing base on contractual agreement with terms on the agreement directly linked to the Blockchain and are decentralized. Smart contracts are Blockchain, it is considered as a second generational Blockchain. As the word contract goes, a legally binding agreement which recognizes and governs the right and duties of parties to agreement. Contracts are legally enforceable, it needs to meet its requirement and approval of the law binding it in order to make the contract valid. Smart contracts as computer codes follow suit and act according to the law that binds it and expect both parties involved in the contract to act or perform what is expected of them in order to make the contract valid. As always traditional contracts are enforced by a centralized organization to enforce the contractual agreement, example bank will act as middle entity for two people transacting money, court can be in charge of an undertaking involving the transfer of ownership of a land. In the case of smart contract, it is defined by computer codes itself, the contract are made by the parties involved, though the degree at which you can automate the contract are relative but smart contracts are automated by computer codes , defined by the computer codes and are executed automatically by the same codes. The purpose of smart contract as a Blockchain is to remove centralized organization involved in traditional contracts and make everything decentralized to suit the purpose of Blockchain, whereby everything involving in the contract are captured by the codes and as the parties involved in the contract does exactly what is required in the contract, the contract will then automatically be executed. Smart contracts are automated. In tha case it enables autonomy and as a Blockchain it is immutable, the codes becomes the law that is governing the contract. Once the parties involved in the contract abide by the contract, the code will execute no matter what. That gives full control of ownership to the parties involved in the contract without any central entity getting involved, thus control of ownership digitally. Smart contract are self-distributed across all nodes connected. Smart contract works algorithmically , once the contract is valid, once the agreement is functional , it must self-execute. The codes will determine how the contract will take place and that no individual, no organization can alter , temper or manipulate contracts. Smart contract reduce corruption, in a case where parties involving in the contract disagree with the terms the contract will not execute , it removes central dependency , it is cheaper and faster to run as well as guarantee certainty.
Example of a smart contract could be a logistics company delivering items to a person as the receiver automates payment on a smart contract and let payment through after receiving items. In this case once both parties agrees on contract, the person receive the items and confirm that items are received, the codes will release payment to the logistics company right away.
Another example is using smart contract for food delivery, you order and automate payment to pay on delivery, in this case , once you receive food and confirm, payment is also received by restaurant right away and smart contract makes the transfer of payment such that once both parties abide by the agreement the transfer of payment are unstoppable.
Last example is booking for a hotel, you can book hotels in advance and schedule time and date, as you occupy the room at the exact time and date payment of the hotel and the availability of the room is agreed on both parties as well us how payment will be made once you occupy the room smart contract can be used to settle both parties without having to get people involved just the computer codes.
Smart contracts were first proposed by Nick Szabo.
Today countless number of cryptocurrencies works on the smart contract Blockchain. Ethereum was the first Cryptocurrency to be built on the smart contract. Example of other cryptos that works on smart contract includes; Pundi X , Zilliqa, Basic Attention Token (BAT), Stautus(SNT), Kin, etc.
I am Crypto Ras.