Deploy with Remix

Remix IDE is a powerful browser-based tool that allows you to write, compile, and deploy smart contracts without setting up a local development environment. You can use it to easily deploy contracts to the Omega network.


🧱 Step 1: Open Remix

Go to https://remix.ethereum.org Create a new Solidity file under the contracts/ directory (e.g., Counter.sol):

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.20;

contract Counter {
    uint256 public count;

    function increment() public {
        count += 1;
    }
}

βš™οΈ Step 2: Compile the Contract

  1. Navigate to the Solidity Compiler tab on the left sidebar.

  2. Select the appropriate compiler version (e.g., 0.8.20).

  3. Click Compile Counter.sol.


πŸ”Œ Step 3: Connect MetaMask to Omega

  1. Open MetaMask and switch to the Omega network:

    • Network Name: Omega

    • RPC URL: https://0x4e454228.rpc.aurora-cloud.dev

    • Chain ID: 1313161768

    • Currency Symbol: OMEGA (optional)

    • Block Explorer: https://0x4e454228.explorer.aurora-cloud.dev

  2. Approve the network switch in MetaMask.


πŸš€ Step 4: Deploy the Contract

  1. Go to the Deploy & Run Transactions tab in Remix.

  2. Set the Environment to Injected Provider - MetaMask.

  3. Ensure your MetaMask account is connected and on the Omega network.

  4. Select the compiled contract (e.g., Counter).

  5. Click Deploy and approve the transaction in MetaMask.

Once confirmed, your contract will be live on Omega!


πŸ”Ž Step 5: Verify on Explorer (Optional)

After deployment, copy your contract address and head to:

➑️ Omega Block Explorer

Paste the address to view transactions and interact with the contract.


πŸ“š Resources


Last updated