Using Remix (The Browser IDE)
Remix is an online IDE that allows you to quickly develop, compile, and deploy smart contracts. It is one of the fastest ways to get started with Solidity because it runs entirely in your browser with no setup or installation required.
Remix includes a built-in simulated blockchain so you can deploy and test contracts locally before deploying them to a public network. You can also deploy directly to testnets or mainnets right from Remix, which is useful for sharing deployed contracts or validating production-ready builds.
This guide will walk you through a basic introduction to Remix and show you how to deploy a contract to CelesChain Testnet.
If you are already familiar with Remix, skip ahead to Prepare for Deployment.
Objectives
By the end of this guide, you will be able to:
Understand the main features, advantages, and limitations of Remix
Compile and test the example contract
Storage.solDeploy a smart contract to the CelesChain Testnet and interact with it through the block explorer
Remix Window Overview
Open your browser and navigate to: ➡️ https://remix.ethereum.org
After dismissing the welcome prompts, you will see the main interface, divided into three primary areas.
Editor Pane
The editor pane loads with the Remix home screen containing useful resources and security warnings. Close the home tab and open:
Here is where you write and review your smart contract code. Remix includes:
Syntax highlighting
Error highlighting
Linting
Inline warnings
Errors appear as a red symbol next to the line number instead of traditional underlines.
At the top of this panel is the large green Compile button, which compiles your Solidity code. It does not execute anything until the contract is deployed.
Terminal / Output Panel
Located under the editor, this panel displays:
Compilation logs
Deployment logs
Transaction results
Debugging output
This terminal is essential for observing what your smart contract is doing behind the scenes.
Left Sidebar
The left panel contains a vertical set of tools and plugins, including:
File explorer
Workspaces
Solidity compiler
Deployment controls
Search
Plugin manager
Most plugins required for Solidity development are activated by default.
Plugins
Remix is built around a plugin system. You can manage these plugins through the plug-icon at the bottom-left of the sidebar.
Below are the two plugins you will use the most.
Solidity Compiler Plugin
Make sure to enable:
Auto-compile
Correct Solidity version (matching your contract’s pragma)
The compiler panel displays detailed error messages if your contract fails to compile.
Deploy & Run Transactions Plugin
This is where you deploy and interact with your contracts.
You can select:
Execution environment
Deployer wallet
Gas settings
Contract to deploy
Once your contract compiles successfully, click the Deploy button to deploy it to the selected environment.
Two common pitfalls in Remix:
Each time you click Deploy, a new contract instance is created. Clear old deployments using the trash icon.
If your code does not compile, Remix will deploy the last compiled version without showing an error. Always confirm the compiler plugin shows zero errors.
Prepare for Deployment
To deploy on the CelesChain Testnet, you need a wallet configured for development and funded with testnet CLES.
Set Up a Wallet
If you already have a dedicated development wallet, skip this section.
Otherwise, install Metamask and create a new wallet with no valuable assets.
Never use your main wallet for development. A single bug can unintentionally transfer tokens or trigger irreversible actions. Use separate wallets for development, testing, and production.
Add the CelesChain Testnet to Your Wallet
Add the network using the details below:
Network Name: CelesChain Testnet RPC: https://rpc-testnet.celeschain.xyz Chain ID: 22225 Currency Symbol: CLES Explorer: https://testnet-explorer.celeschain.xyz
Once added, switch your wallet network to CelesChain Testnet.
Get Testnet CLES
You will need a small amount of CLES to pay gas fees. Use any available CelesChain Faucet or request test tokens through community channels if provided.
After receiving CLES, verify your balance by selecting CelesChain Testnet in Metamask.
Deploying a Contract to CelesChain Testnet
Select Deployment Environment
In Remix, open: Deploy & Run Transactions
Set Environment to: ➡️ Injected Provider (Metamask)
Your wallet will prompt you to connect. Once connected, the panel will display:
If you see a different network, switch networks in your wallet.
Deploy the Contract
Click Deploy and confirm the transaction in your wallet. Deployment requires gas, so review the transaction carefully before approving.
Developers often approve many transactions. Always double-check the network, gas cost, and action before clicking Confirm. If something feels off, it may be a scam.
After deploying, copy the contract address and open: https://testnet-explore.celeschain.xyz
Paste the contract address in the search bar.
Verify the Contract
Verifying your contract on the explorer allows others to read and interact with it using a human-friendly interface.
Open the Contract tab on the explorer and select Verify & Publish.
Then:
Choose Solidity (Single File)
Select the same compiler version used in Remix
Select the correct license identifier
Paste your contract source code
Click Verify & Publish
You should see a confirmation message when verification succeeds.
Interact with the Contract
Once verified:
Open the Read Contract tab to view public variables
Open the Write Contract tab to call state-changing functions (requires wallet connection)
For the sample Storage.sol contract, you can:
Set a stored value
Retrieve the stored value
Last updated
