> For the complete documentation index, see [llms.txt](https://chainide.gitbook.io/chainide-english-1/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://chainide.gitbook.io/chainide-english-1/ethereum-ide-1/13.-irisnet-ide/2.-how-to-use-irisnet-evm-ide.md).

# 2. How to Use IRISnet EVM IDE

## 1. Write a contract

Upon entering the project, the README.md file included in the folder will be automatically previewed.

<figure><img src="/files/L3F8hgI7Mkobq90vcr5b" alt=""><figcaption></figcaption></figure>

In the Explorer panel, you can create new files (or folders), refresh the directory, and download files. You can also directly click on the files that come with the template.

<figure><img src="/files/QnhRax94Nk05ONdM9Xwe" alt=""><figcaption></figcaption></figure>

Click on a contract file to edit the code.

<figure><img src="/files/vk26x30BLn4aClEKedh5" alt=""><figcaption></figcaption></figure>

## 2. Compile a contract

Once your contract code is written, click on the "Compiler" button in the right-side menu to open the compilation module. Choose the compiler version and decide whether to enable optimization, then click "Compile \*\*\*.sol" to initiate the compilation.

<figure><img src="/files/k3rINr3V2ROHY8yvKTBC" alt=""><figcaption></figcaption></figure>

After successful compilation, the ABI and BYTE CODE will be displayed below, and there will be a confirmation message in the console stating "Compile contract success."

<figure><img src="/files/6ClSb3TuMzABSdM3b1v5" alt="" width="326"><figcaption></figcaption></figure>

## 3. Connect to IRISnet EVM

Before deploying a contract, you need to click on "Connect Wallet" in the upper right corner and select connect to JavaScript VM (for testing, implemented in JavaScript) or Metamask (for deployment on the IRISnet blockchain).

<figure><img src="/files/3OAZ0tL46hOCOgJfnEuV" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/uI0ruPBkW4vyWw06SDZd" alt=""><figcaption></figcaption></figure>

## 4. Deploy a contract

Click the "Deploy & Interaction" button on the right-hand side, which will bring up the deployment and interaction pages. Select the compiled contract and click "Deploy" to initiate the deployment (then confirm in Metamask). After successful contract deployment, the console will display the contract deployment result and relevant information.

<figure><img src="/files/2XzlxkM2dT3fGQCxCzFA" alt=""><figcaption></figcaption></figure>

In addition, you can click "Import Deployed Contract" to import a contract that has already been deployed for contract interactions.

<figure><img src="/files/EMg1mfB1XBxINLFZ4bLB" alt=""><figcaption></figcaption></figure>

## 5. Contract interaction

After a successful contract deployment, you can interact with the contract. Click on the deployed contract, choose the corresponding interface, and click "Submit" or "Get" to perform interactions.

<figure><img src="/files/J4uZhGoxcmZVjVKNfjoG" alt=""><figcaption></figcaption></figure>

## 6. Transaction Query

Click on the transaction hash in the Output section to view the specific details of each transaction.

<figure><img src="/files/36QjTinVEXIchn3Ic2p2" alt=""><figcaption></figcaption></figure>

## 7. IRISnet EVM Sandbox

If you prefer using the command line for development, you can open the IRISnet EVM Sandbox, which comes pre-loaded with [Hardhat](https://hardhat.org/), [Truffle](https://trufflesuite.com/), [Brownie](https://eth-brownie.readthedocs.io/en/stable/) [Ganache](https://trufflesuite.com/ganache/), [Git](https://git-scm.com/) and [Node.js V16](https://nodejs.org/en).

<figure><img src="/files/qK2Y0ciFhjcr5QeBzjWm" alt=""><figcaption></figcaption></figure>

If you've started a process on a port in the Sandbox and wish to access that port, please refer to [ChainIDE - Port Forwarding](/chainide-english-1/port-forwarding.md).
