"Hello World" Smart Contract in Remix-IDE Last Updated : 16 Mar, 2023 Comments Improve Suggest changes 6 Likes Like Report What do you mean by Smart Contract? Smart contracts are self-executing contracts. The term was coined by Nick in 1994. Smart contracts are very different from traditional software programs. They are immutable once deployed on the blockchain. It was because of Ethereum the term smart contract became so popular and used in the Ethereum blockchain. Solidity is the main programming language for writing smart contracts for the Ethereum blockchain. It is a contract-oriented language, which means that smart contracts are responsible for storing all of the programming logic that transacts with the blockchain. The term smart in smart contracts is as the contract gets executed depending upon some logical condition and all nodes in blockchain have the same copy of that smart contract. What is Remix-IDE? The Remix is an Integrated Development Environment(IDE) for developing smart contracts in Solidity programming language. The IDE can be used to write, compile, and debug the Solidity code. It was written in JavaScript and supports testing, debugging and deploying smart contracts, and much more. Remix-IDE can be accessed in many different ways: You can use it online in any browser of your choice, by entering the URL: https://remix.ethereum.org/ in the browser.Or you can install it in your own system using this link.The third way is to use Mist (the Ethereum Dapp browser).Getting Started This article is all about writing your first smart contract in solidity using remix-ide which is a browser-based IDE. So let's get started with our first simple "Hello World" program. Open the remix-ide in your browser by typing: https://remix.ethereum.org/You will be presented with following screen: Click on the “file explorer” icon onto the left side bar (indicated by blue arrow in the above picture).Select Solidity in the Environment and click + symbol right to the browser. Type the file name “HelloWorld.sol” and enter the following code into it // My First Smart Contract pragma solidity >=0.5.0 <0.7.0; contract HelloWorld { function get()public pure returns (string memory){ return 'Hello Contracts'; } }Once done click the icon just below the "file explorer" icon as shown below: You will be presented with following screen: Click "Compile HelloWorld.sol". Leave rest setting as it is.Once compiled successfully click the icon below "Solidity Compiler" that is "Deploy and run transactions". You will be welcomed by next screen: Without changing any of the values as shown above just click "Deploy" button to deploy your smart contract. Once deployed you will find your smart contract just below in "Deployed Contracts" heading: Click ">" before your contract you will see a button "get" below as our contract has get function that returns a string. Click get button and you will get : https://en.wikipedia.org/wiki/Smart_contractPrint Hello World using getters and setters. In this approach we will see how we can use get() and set() methods to get the string from the user and print it. Solidity pragma solidity >= 0.8.2 <0.9.0; contract HelloWorld{ string userInput; function set(string memory finalValue) public { userInput = finalValue; } function get() public view returns(string memory){ return userInput; } } To run it, follow the steps till step 11 of last approach. Then follow the below steps. After clicking the '>' in the Deployed Contracts section a drop down menu will be opened which will consist of two methods. Set and Get. 2. Now beside the set method we can see a blank box appears which asks for a string value. Here we will type whatever we will like to print / show. Then click on set. In the terminal user can see another transaction happened. Then click on get, and the string we passed will be visible below. Create Quiz Comment V vikasthada Follow 6 Improve V vikasthada Follow 6 Improve Article Tags : Machine Learning Explore Machine Learning BasicsIntroduction to Machine Learning8 min readTypes of Machine Learning7 min readWhat is Machine Learning Pipeline?6 min readApplications of Machine Learning3 min readPython for Machine LearningMachine Learning with Python Tutorial5 min readNumPy Tutorial - Python Library3 min readPandas Tutorial4 min readData Preprocessing in Python4 min readEDA - Exploratory Data Analysis in Python6 min readFeature EngineeringWhat is Feature Engineering?5 min readIntroduction to Dimensionality Reduction4 min readFeature Selection Techniques in Machine Learning4 min readSupervised LearningSupervised Machine Learning7 min readLinear Regression in Machine learning14 min readLogistic Regression in Machine Learning10 min readDecision Tree in Machine Learning8 min readRandom Forest Algorithm in Machine Learning5 min readK-Nearest Neighbor(KNN) Algorithm8 min readSupport Vector Machine (SVM) Algorithm9 min readNaive Bayes Classifiers6 min readUnsupervised LearningWhat is Unsupervised Learning5 min readK means Clustering â Introduction6 min readHierarchical Clustering in Machine Learning6 min readDBSCAN Clustering in ML - Density based clustering6 min readApriori Algorithm6 min readFrequent Pattern Growth Algorithm5 min readECLAT Algorithm - ML5 min readPrincipal Component Analysis (PCA)7 min readModel Evaluation and TuningEvaluation Metrics in Machine Learning9 min readRegularization in Machine Learning5 min readCross Validation in Machine Learning5 min readHyperparameter Tuning5 min readML | Underfitting and Overfitting5 min readBias and Variance in Machine Learning6 min readAdvanced TechniquesReinforcement Learning9 min readSemi-Supervised Learning in ML5 min readSelf-Supervised Learning (SSL)6 min readEnsemble Learning8 min readMachine Learning PracticeMachine Learning Interview Questions and Answers15+ min read100+ Machine Learning Projects with Source Code [2025]6 min read Like