Day 3

Day 03 - Initializing Basic Contract

2:30 AM, February 03, 2023

Solidity

Mohammad Mudassir


Smart contracts are like computer programs that live on a blockchain. They are designed to automatically carry out a set of instructions when certain conditions are met. This means that the agreement between people or parties is automatically executed without the need for a middleman. The outcome is also immediately certain and can trigger the next step in a process. This helps to speed up the process and ensure that everything is done accurately and efficiently.

contract ContractName {
    Statement1;
    Statement2;
}

It's a good idea to name your smart contract using Pascal case notation. This means that the first letter of each word in the contract name should be capitalized. For example, instead of naming your contract "mycontract," you would name it "MyContract."

MyContract
SendNft
MakerDao