Smart contract

A smart contract is a program that runs on a blockchain. Smart contracts are written in programming languages such as Solidity or Rust and are used to create many applications that run on a blockchain, like decentralized exchanges, borrowing and lending protocols, and social media.