Transition to Web3 - Course 4 | How Smart Contracts Work
Just like we can add any data into a block, we can add software programs into a block.
🕵️♀️ Definition: These software programs that go into the blocks are called “smart contracts.”
For example, let’s create a program named buyBook. In this example, buyBook manages a very simple transaction: