A smart contract is an automated digital agreement, written in code, that tracks, verifies, and executes the binding transactions of a contract between various parties . The transactions of the contract are automatically executed by the smart contract code when predetermined conditions are met.