Smart contracts are self-executing lines of code that automatically verify and execute the conditions of a buyer-seller agreement across a computer network. When smart contracts are put on blockchains, transactions become traceable, transparent, and irrevocable.