What is a smart contract?

A smart contract is a protocol function or algorithm that is automatically executed by a computer system to digitally facilitate, verify, or enforce the negotiation or performance of a contract in a traceable, transparent and irreversible manner.

The most popular contracts are built on the Ethereum standard, ERC-20 Token, mostly for its mass usage and security level.