What is a smart contract?
0 views
A smart contract is a self-executing program stored on a blockchain that automatically performs actions when predefined conditions are met—like a vending machine that releases a snack when you insert the right coins. For example, a smart contract can release payment to a seller only when a shipment is confirmed. Because it runs on a decentralized network, no middleman is needed. Smart contracts are the backbone of DeFi and many blockchain applications, but bugs in their code can be exploited.