A smart contract is a computer code that is stored on a blockchain and contains the rules and conditions of a transaction. When certain conditions are met, the smart contract will automatically execute the terms of the agreement. For example, a smart contract could be used to execute a real estate transaction. When all parties have agreed to the terms of the contract and the buyer has paid the agreed upon amount, the smart contract will automatically transfer ownership of the property to the buyer.