Smart contracts are digital contracts written in code on the blockchain platform, which can operate automatically and allow parties to exchange virtual assets, services, stocks, etc. transparent manner without the need for an intermediary or witness.