What is a smart contract, and how does it work?
A smart contract is code stored on a blockchain that runs automatically and is enforced by the whole network. It holds its own funds and rules, executes deterministically on every node for a gas fee, and powers tokens, DeFi, NFTs and DAOs — bugs and all.
#basics#dapp-development#smart-contracts

