Remix IDE
Deploy smart contracts on RISE using Remix IDE
Remix IDE is a browser-based development environment for writing, compiling, and deploying smart contracts. No installation required.
Prerequisites
- A Web3 wallet (MetaMask, Rabby or similar) with RISE Testnet configured
- Testnet ETH from the RISE Faucet
Deploy a Contract
Create the Contract
Open Remix IDE and create a new file called Counter.sol in the File Explorer. Add the following code:
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.30;
contract Counter {
uint256 public number;
function setNumber(uint256 newNumber) public {
number = newNumber;
}
function increment() public {
number++;
}
}Compile the Contract
- Click the Solidity Compiler tab (in the left sidebar)
- Select compiler version
0.8.30or higher - Click Compile Counter.sol
Enable Auto compile in the compiler settings for a better development experience. Your contracts will automatically compile as you make changes.
Deploy to RISE Testnet
- Click the Deploy & Run Transactions tab (in the left sidebar)
- In the Environment dropdown, select Injected Provider - MetaMask (or whichever wallet you have)
- Your wallet will prompt you to connect - approve the connection
- Important: Make sure your wallet is connected to RISE Testnet (Chain ID: 11155931)
- Ensure
Counteris selected in the Contract dropdown - Click Deploy
- Confirm the transaction in your wallet
Interact with the Contract
Once deployed, your contract will appear under Deployed Contracts:
- Click
numberto read the current value (starts at 0) - Enter a value and click
setNumberto set a new number - Click
incrementto increase the number by 1
Each write operation (setNumber, increment) will require a transaction confirmation in your wallet.
View on Explorer
After deployment, you can view your contract on the RISE Testnet Explorer by searching for the contract address shown in Remix.