Developers Forum for XinFin XDC Network

daniel weber
daniel weber

Posted on

Steps to Execute Solidity Smart Contract using Remix IDE

Remix IDE is generally used to compile and run Solidity smart contracts. Below are the steps for the compilation, execution, and debugging of the smart contract.

Step 1: Open Remix IDE on any of your browsers, select on the New File and click on Solidity to choose the environment.
remix

Step 2: Write the Smart contract in the code section, and click the Compile button under the Compiler window to compile the contract.
Image description

Step 3: To execute the code, click on the Deploy button under Deploy and Run Transactions window.
Image description

Step 4: After deploying the code click on the method calls under the drop-down of deployed contracts to run the program, and for output, check to click on the drop-down on the console.
Image description

Step 5: For debugging click on the Debug button corresponding to the method call in the console. Here you can check each function call and variable assignments.
Image description

Discussion (0)