Posts

Struct in Solidity

 struct type are use to represent a  records  Suppose you want to keep track of your books in a library. You might want to track the following attributes about each book − Title Author Subject Book ID Defining a Struct To define a Struct, you must use the  struct  keyword. The struct keyword defines a new data type, with more than one member. The format of the struct statement is as follows − struct Book { string title ; string author ; uint book_id ; } Accessing a Struct and its variable To access any member of a structure, we use the member access operator (.). The member access operator is coded as a period between the structure variable name and the structure member that we wish to access. You would use the struct to define variables of structure type. The following example shows how to use a structure in a program. pragma solidity ^ 0.5 . 0 ; contract test { struct Book { string title ; string author ; uint book_id ; } Bo

Blockchain

Image
  The link between two block is the hash 

Open Source Contribution

 1) First we have to go to the github account and fork it  fork will create a copy of the project and save to our local system  2)Pull request :- after changing the code in our local system we have to request the project owner with the  help of pull request  3)Readme file will give the overview of the project what tech stack, and which area they work. 4)watch:- it is like a notification when any changes happen in the project it will notify us. 5)Star :- it is like bookmark for github. How to pull project from github in vs code   steps :- go to github and goto setting button open command palet and search git clone and then past the url. 1)after that change in the file and after that type git status in terminal  2)git add file name  (Biplav.md) 3)git commit -m "Biplav added" 4)git push 5)Then go to the github and check that file is added or not  6)after file added go and create new pull request  7) give some name and create pull request then check the other person profile that

Solidity

Image
  here you will get byte code and abi code  to get the byte code you have to go to the  search for byte code to open code  and 0x hexadecimal  Bytecode to Opcode Disassembler https://etherscan.io/opcode-tool The Ethereum Virtual Machine is  the software platform that developers can use to create decentralized applications (DApps) on Ethereum Rinkyby faucet is for generating testing Ethereum  contract deployment environment    we can use injected we3 for the deploy a contract or run a transcation  uint ka matlab hota haa unsign integer  koi bhi value maae change nahi karta haa to vo view khala ta haa  pragma solidity ^ 0.5.0 ; contract Details {     string name ;     uint age ;     constructor () public {         name   = "Goku" ;         age = 24 ;     }     function getname () view public returns ( string memory ){         return name ;     }     function getage () view public returns ( uint ){         return age ;     } function setage() public { age =