smart contract

In blockchain, a smart contract is a self-executing digital program that runs on a blockchain network and automates the terms of an agreement when predetermined conditions are met. This contract is written in code and establishes the rules and obligations of a transaction or relationship, enabling parties to interact without intermediaries like legal representatives or financial institutions.