Smart contract code

Definition
Smart contract code is

"a piece of code (known as a software agent) that is designed to execute certain tasks if pre-defined conditions are met."

Overview
"Such tasks are often embedded within, and performed on, a distributed ledger. For example, one well-known smart contract implementation describes software agents that create cryptocurrency, provide an electronic voting mechanism and offer an electronic blind auction mechanism as smart contracts."