CryptoCoinsInfoClub.com

Remix >< Ethereum ><>

Remix - The Ethereum Wiki

Remix - The Ethereum Wiki

Remix, previously known as Browser Solidity, is a web browser based IDE that allows you to write Solidity smart contracts, then deploy and run the smart contract. You can run Remix from your web browser by navigating to , or by installing and running in on your local computer. Instead of running Remix from , you can download the latest package from . You will have to switch to the branch gh-pages. Download the .zip file with a name similar to remix-0f851e3.zip into a directory on your computer. Unzip the .zip file. Load index.html in your browser. The advantage of running Remix from your local computer is that it can communicate with an Ethereum node client running on your local machine via the Ethereum JSON-RPC API . You can then execute your smart contracts in Remix while connected to your local development blockchain, the Testnet blockchain, or the Mainnet blockchain. Whether you are running Remix from it's website, or from your local installation, you should see a screen resembling the one below. Following is the source code for a simple example that you can copy and paste into the left section of your Remix screen. 1 pragma solidity ^0.4.8; 2 3 contract Hello { 4 5 // A string variable 6 string public greeting; 7 8 // Events that gets logged on the blockchain 9 event GreetingChanged(string _greeting);10 11 // The function with the same name as the class is a constructor12 function Hello(string _greeting) {13 greeting = _greeting;14 }15 16 // Change the greeting message17 function setGreeting(string _greeting) {18 greeting = _greeting;19 20 // Log an event that the greeting message has been updated21 GreetingChanged(_greeting);22 }23 24 // Get the greeting message25 function greet() constant returns (string _greeting) {26 greeting = _greeting;27 }28 } On the right Continue reading >>

More in ethereum