> For the complete documentation index, see [llms.txt](https://omniaverse.gitbook.io/omniaverse/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://omniaverse.gitbook.io/omniaverse/the-omniaverse-ecosystem/omnia-chain/manual-smart-contract-deployment.md).

# Manual Smart Contract Deployment

If you elect to not use the [OmniaVerse Build](https://build.omniaverse.io) platform (suggested), you can follow the isntructions below.

Anyone can build a smart contract application on the Omnia Chain. Below is a step-by-step walkthrough on how to deploy a simple smart contract counter using Remix.

Note: Before you start deploying using Remix, make sure you are connected to the Omnia Chain in your non-custodial wallet.

## **What is Remix?** <a href="#id-1.-what-is-remix" id="id-1.-what-is-remix"></a>

[Remix](https://remix-project.org/) is open-source Ethereum Integrated Development Environment (IDE) you can use to write, compile, and debug Solidity code. As such, Remix is an extremely versatile and powerful tool in Web3 and DApp development.

You can navigate to the Remix text editor [https://remix.ethereum.org](https://remix.ethereum.org/#lang=en\&optimize=true\&runs=200\&evmVersion=null\&version=soljson-v0.8.20+commit.a1b79de6.js\&language=Solidity) and copy/paste this code below.

<pre><code><strong>// SPDX-License-Identifier: MIT
</strong>pragma solidity ^0.8.4;

contract TestBitRockSimpleCounter {
    int private count = 0;
    function incrementCounter() public {
        count += 1;
    }
    function decrementCounter() public {
        count -= 1;
    }

    function getCount() public view returns (int) {
        return count;
    }
}
</code></pre>

## Compile Code <a href="#id-2.-compile-code" id="id-2.-compile-code"></a>

After the code is written, compile it using Solidity version based on the code written.

![](https://docs.bit-rock.io/~gitbook/image?url=https:%2F%2F4038204926-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fi2DMEZmmK1I0XeD5wJot%252Fuploads%252F5ZWZ5iJrRB9iN4PkNjea%252FScreenshot%25202023-07-17%2520at%252017.14.57.png%3Falt=media%26token=4d733550-7ff1-4931-aefa-1201a3295008\&width=300\&dpr=4\&quality=100\&sign=41e0b23cef9b726759be9639a5d959f5d25e86282e7590c3e0eace6b8122f34f)

Once the code is compiled, a **green Check** will be shown.

## Deploy and view on Omnia Explorer <a href="#id-3.-deploy-and-view-on-bitrock-explorer" id="id-3.-deploy-and-view-on-bitrock-explorer"></a>

![](https://docs.bit-rock.io/~gitbook/image?url=https:%2F%2F4038204926-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fi2DMEZmmK1I0XeD5wJot%252Fuploads%252FxkxfDIDbBQfaBVEqVqop%252FScreenshot%25202023-07-17%2520at%252017.10.19.png%3Falt=media%26token=16fe82d2-d84d-4ff5-9205-a05531cefa04\&width=300\&dpr=4\&quality=100\&sign=37833c61b8f0241320b43cfd96fadad309e74ab6a513110294633450a8377001)

After the code is compiled, it is ready to be deployed on the Omnia Chain. Click the Deploy button and a Metamask confirmation window will pop up.

Note: Omnia Chain smart contract deployment fees are ZERO.

![](https://docs.bit-rock.io/~gitbook/image?url=https:%2F%2F4038204926-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fi2DMEZmmK1I0XeD5wJot%252Fuploads%252FWA811IDJa7MsaiU3tZLm%252FScreenshot%25202023-07-17%2520at%252017.16.26.png%3Falt=media%26token=198f7bd8-63b0-484f-b1cc-c11b5ec35137\&width=300\&dpr=4\&quality=100\&sign=293a8250f0f74e6d36bd6620e6afc1588c84be38d5d489d6dc0c2d99cbfeffff)

## The smart contract is ready to be used <a href="#id-4.-the-smart-contract-is-ready-to-be-used" id="id-4.-the-smart-contract-is-ready-to-be-used"></a>

After the smart contract is deployed, the contract address can be seen and explored on the [Omnia Explorer](https://scan.omniaverse.io).

![](https://docs.bit-rock.io/~gitbook/image?url=https:%2F%2F4038204926-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252Fi2DMEZmmK1I0XeD5wJot%252Fuploads%252FkXskhRtMutXXkSJNGtN4%252FScreenshot%25202023-07-17%2520at%252017.18.47.png%3Falt=media%26token=c15f78a3-e68e-4cc4-be9e-8d92f4403f09\&width=768\&dpr=4\&quality=100\&sign=0c7d6ac2965b1fd6a0a04917ee65d678e21e678cc31a9c790ce831bc615405fe)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://omniaverse.gitbook.io/omniaverse/the-omniaverse-ecosystem/omnia-chain/manual-smart-contract-deployment.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
