# Deploy with Remix

[Remix IDE](https://remix.ethereum.org) 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`):

```solidity
// 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](https://0x4e454228.explorer.aurora-cloud.dev)

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

***

### 📚 Resources

* 🌐 [Remix IDE](https://remix.ethereum.org/)
* 🦊 [MetaMask](https://metamask.io)
* 🔍 [Omega Explorer](https://0x4e454228.explorer.aurora-cloud.dev)
* ⚙️ [Omega RPC](https://0x4e454228.rpc.aurora-cloud.dev)

***


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://omega-6.gitbook.io/omega/deploy-with-remix.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
