Skip to main content
Experience seamless dApp development with IOTA EVM.
You can deploy your smart contracts to any of your EVM chains using popular tools like Remixand Hardhat.
Get a Basic Contract
This guide will deploy the Counter
contract you can find inthe How to Create a Basic Solidity Contract Guide.
- Remix
- Hardhat
Deploying a Solidity smart contract using Remix is a straightforward process that doesn't require any installation orsetup of development environments on your machine. Remix is a powerful, browser-based IDE that allows you to write,compile, and deploy smart contracts.
1. Connect to Metamask
Before you get started, make sure you have connected Metamask to your network of choice.
Networks & Endpoints
You can check the connection details in the Networks & Endpoints section.
- IOTA EVM
- IOTA EVM Testnet
- ShimmerEVM
- ShimmerEVM Testnet
2. Access Remix IDE
Open your web browser and navigate to Remix IDE.
3. Create Your Smart Contract
- In the
File Explorer
tab on the left, click theCreate New File
icon. - Name your file
Counter.sol
. - Copy the Solidity code for the basic counter smart contract and paste it intothe
Counter.sol
file you just created in Remix.
4. Compile Your Smart Contract
- Navigate to the
Solidity Compiler
tab on the left sidebar. - Select the appropriate compiler version that matches the version specified in your contract (
^0.8.6
or similar).You might need to enable "Auto compile" or click the "Compile" button manually. - If there are errors, Remix will display them, and you'll need to correct them before proceeding.
5. Deploy Your Smart Contract
Switch to the "Deploy & Run Transactions" tab on the left sidebar.
In the "Environment" dropdown, select and select
Injected Web3
from theEnvironment
dropdown.After selecting the environment, make sure the contract Counter is selected in the
Contract
dropdown.Click the
Deploy
button. If you're using an Ethereum network, confirm the transaction in your Web3 wallet.
6. Interact with Your Deployed Contract
Once deployed, the contract instance will appear under the Deployed Contracts
section.Here, you can interact with your contract by calling its functions. For the Counter contract, you'll see buttons to callits increment
, decrement
, and getCount
functions directly from Remix.
- 1. Connect to Metamask
- 2. Access Remix IDE
- 3. Create Your Smart Contract
- 4. Compile Your Smart Contract
- 5. Deploy Your Smart Contract
- 6. Interact with Your Deployed Contract
- Requirements
- 1. Set Up Hardhat
- 2. Add Your Contract
- 3. Create a Deployment Script
- 4. Compile and Deploy Your Contract