Smart contracts are agreement between two or more people in the form of computer code which running on blockchain…