Ethereum is one of the fast growing technology that is set to break all the records. Most of us wanted to explore this technology but due to lack of complete tutorials or beginner guide most of us struggle to get started with this technology. We prepared a beginner guide on the Ethereum blockchain that help you to get started with Ethereum blockchain development.
In lesson 2, we have learnt how to create simple student smart contract so we will use that smart contract for this lesson. In this lesson, you will learn two concepts, one is compile and second is deployment.
Compile Smart Contract
To compile smart contract, go to compile option and click on "Start to compile" option, this compile the smart contract and show if there are any warning or error. In this there are warnings or errors then smart contract shown in green background as shown below.
Deploy Smart Contract
We also need to understand the concept of gas. It means that whenever you are doing any operation on blockchain, either deploy the smart contract or create student record, you need to pay some money and that is known as gas. In Ethereum you need to pay gas in terms of ether. So the account that is used to deploy smart contract on blockchain need to have some ether in account as that need to be spend during deployment and testing phase.
Then click on "deploy" button to deploy that smart contract.
When smart contract is deployed on blockchain, it get stored at some address and that can be seen in below screen shot. It also show the set and get function to test the functionality.