Manual Smart Contract Deployment

If you elect to not use the OmniaVerse Build 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?

Remix 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 and copy/paste this code below.

// SPDX-License-Identifier: MIT
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;
    }
}

Compile Code

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

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

Deploy and view on Omnia Explorer

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.

The smart contract is ready to be used

After the smart contract is deployed, the contract address can be seen and explored on the Omnia Explorer.

Last updated