Using Remix (The Browser IDE)

Remixarrow-up-right 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 Deploymentarrow-up-right.


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.sol

  • Deploy a smart contract to the CelesChain Testnet and interact with it through the block explorerarrow-up-right


Remix Window Overview

Open your browser and navigate to: ➡️ https://remix.ethereum.orgarrow-up-right

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.


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.

triangle-exclamation

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 Metamaskarrow-up-right and create a new wallet with no valuable assets.

triangle-exclamation

Add the CelesChain Testnet to Your Wallet

Add the network using the details below:

Network Name: CelesChain Testnet RPC: https://rpc-testnet.celeschain.xyzarrow-up-right Chain ID: 22225 Currency Symbol: CLES Explorer: https://testnet-explorer.celeschain.xyzarrow-up-right

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 Metamaskarrow-up-right.


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.

triangle-exclamation

After deploying, copy the contract address and open: https://testnet-explore.celeschain.xyzarrow-up-right

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:

  1. Choose Solidity (Single File)

  2. Select the same compiler version used in Remix

  3. Select the correct license identifier

  4. Paste your contract source code

  5. 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