Introduction
Smart Contracts are the backbone of the web3. You need to have smart contracts to make a dApp. Deploying a smart contract directly on the mainnet is not ideal. You need to test the smart contracts on the local blockchain development network first.
Remix IDE lets you write smart contracts online. It is a platform development tool for Smart Contract. It is part of the Remix project. It has a compiler to check for errors. It offers a wide variety of deployment options. It fosters a fast development cycle. You can deploy it on a Javascript-based Virtual Machine, Inject Web3 for MetaMask, and a local blockchain network.

We are going to look into writing, compiling, and deploying smart contracts on the local blockchain network. So let’s learn the journey of contract development with Remix IDE.
Local Blockchain Development Network
Before start writing our smart contract on Remix IDE, we need a local blockchain network. Local blockchain networks are those that simulate a development blockchain network. It is not ideal to deploy smart contracts directly to the main network. Also, the test network is not fast enough. For development purposes, a local blockchain environment is useful to test Ethereum-based contracts.
We are going to use the ganache tool to create a local blockchain network. Ganache provides you with a local blockchain network. It has both terminal and GUI-based applications. If have used the GUI version and it’s awesome for development. It’s quick and has 10 accounts created already. You can deploy and interact with the smart contract easily.

Download: Ganache
Official Docs: Ganache
I have used the GUI version. After installing create a workspace. In workspace, you save and edit blockchain network. You can change the number of account, number of ethereum balance for each account. You can see the every interaction of the smart contract.
Remix IDE
After visiting the Remix IDE site. You have a panel on the left side. On the top-left side, you have three tabs – Explorer, Compiler and Deployment.

Writing Smart Contract
Remix IDE has also made it simple for contract development. In the explorer tab, you have 3 folders – contracts, scripts and tests, and a readme file. Click on the contracts
folder. There are a few examples of smart contracts. Create a new file with any name with the .sol
extension.

This is not a solidity tutorial that’s why I am giving you the code. You can learn solidity with Solidity Tutorial – A Full Course on Ethereum, Blockchain Development, Smart Contracts, and the EVM
// SPDX-License-Identifier: GPL-3.0 pragma solidity >=0.7.0 <0.9.0; contract Storage { string number; function store(string memory num) public { number = num; } function retrieve() public view returns (string memory){ return number; } }
Solidity Compiler
After writing the solidity code, move to the compiler tab. In the compiler, you can choose the version of the solidity for compiling. Just click on the compile
button for the smart contracts. If there will be an error, solve those and run them again.

Deployment
After a successful compiling, move on to the DEPLOY & RUN TRANSACTIONS
tab. In the tab, you have various fields such as ENVIRONMENT
, ACCOUNT
, GAS LIMIT
, CONTRACT
, and others.
Under the ENVIRONMENT
, you have various networks for the deployment of the smart contract. Select the Web3 Provider
. It will ask you for an endpoint. For Ganache GUI it’s http://127.0.0.1:7545
. Make sure the local network is running. If you are using other, check the documentation for it.
Ganache is provides you with a local blockchain network. It has both terminal and GUI-based applications. If have used the GUI version and it’s awesome for development. It’s quick and has 10 accounts created already. You can deploy and interact with the smart contract easily.

After entering the right endpoint. You can change your account from the ACCOUNT
. Now just click on the Deploy
button to deploy the smart contract on the selected network.

Under the Deployed Contracts
section, you can interact with the deployed contacts. You will find the name of the function in the contract. You can set and get the data from the storage.

Conclusion
Remix – Ethereum IDE is best to learn, practice, and deploy solidity-based smart contracts. I am recommending you to smart practice the smart contract on it. It is best online IDE for learning and teaching Ethereum based Smart Contracts.
Smart Contract are backbone of the dApp. So improving skill in solidity and smart contract will be beneficial. I have create a website for RoadMap and free resources of Web3. You can visit website using the link, https://web3-roadmap.netlify.app.
I hope this article has helped you. I would love it if you share this with others. Thank you for reading the article.
Weekly Newsletter of SurajOnDev
What you will get?
- Read of the Week: 5 best articles hand-picked by myself from different platforms. This article will be developer, self-growth, and productivity-oriented.
- Tool of the Week: A resource or tool link that will help in easing your work.
- Our latest blog post: Latest 3 blog post from SurajOnDev that is me.
- Free eBook and Resources: Occasionally you will get free eBook that are by developers and for developers.
Frequency: Weekly
Subscribe Here: Weekly Newsletter of SurajOnDev