Metapunk Web3 Community

Cover image for Day 3 - Initializing Smart Contract
Vedant Chainani
Vedant Chainani

Posted on • Originally published at dev.to

Day 3 - Initializing Smart Contract

This is Day 3 of 100 in Solidity Series
Today I Learned About Initializing a Smart Contract in Solidity.

Smart contracts are simply programs stored on a blockchain that run when predetermined conditions are met. They typically are used to automate the execution of an agreement so that all participants can be immediately certain of the outcome, without any intermediary’s involvement or time loss. They can also automate a workflow, triggering the next action when conditions are met.

contract ContractName {
    Statement1;
    Statement2;
}
Enter fullscreen mode Exit fullscreen mode

It is Recommended to use Pascal case Notation for the Contract Name, you should capitalize first letter of each word in the contract name. eg -

MyContract
SendFunds
MintNft
Enter fullscreen mode Exit fullscreen mode

Discussion (0)