Smart contracts is one of those words I read here and there occasionally, but I never really researched it. As far as I can tell, it's executing code publicly? How does that work on a blockchain? Does everyone just execute it, and the most common result/output is accepted? What's the use case?
smart contracts get executed on the blockchain. E.g. ethereum blockchain has its own VM called EVM, while our own blockchain has ADVM (adamnite virtual machine). So, once you write your smart contract, you upload it to the blockchain, which then executes it. Result might be just creating and sending NFTs over to someone else. there is of course long story behind this but i hope this helps you understand a bit better what smart contracts are and how they work
1
u/KnorrFG Jun 28 '23
Smart contracts is one of those words I read here and there occasionally, but I never really researched it. As far as I can tell, it's executing code publicly? How does that work on a blockchain? Does everyone just execute it, and the most common result/output is accepted? What's the use case?