What is smart contract?

A smart contract is a contract running in code and on top of a particular blockchain. The smart contract code is comprised of a set of rules, conditions and all other relevant information, which can faciliate and verify the negotiation of an agreement or transaction.