A smart contract is a piece of code that works with a blockchain to enforce the terms of a particular contractual agreement. They allow trusted transactions to take place between anonymous parties, thereby creating a transaction record that’s transparent, traceable, and irreversible—all the while eliminating the need for third-party middlemen. Sounds great!