Mainnet
Last updated
Last updated
NOTE: Ensure you meet the prerequisites before deploying a dApp.
Deploy your dApp by following the steps:
Connect your MetaMask wallet:
Go to the Unit Zero Mainnet Explorer page.
In the footer of the page, click Add Unit Zero Mainnet. The MetaMask extension will open.
In the MetaMask extension:
Click Approve.
Click Switch network.
In your browser, open the MetaMask extension.
In the MetaMask extension, click the downward arrow icon. The Select a network window will open.
In the Select a network window, click + Add network. The MetaMask configuration page will open in your browser.
On the MetaMask configuration page, click Add a network manually. The Add a network manually tab will open.
On the Add a network manually tab:
Set the Network name to Unit Zero Mainnet.
Set the New RPC URL to https://rpc.unit0.dev.
Set the Chain ID to 88811.
Set the Currency symbol to UNIT0.
Optional. Set the Block explorer URL to https://explorer.unit0.dev.
Click Save.
You can:
Import your GitHub repository with your dApp.
Open Remix IDE. The File explorer tab will open.
Go to the Git tab.
On the Git tab, expand the GITHUB SETUP block.
In the GITHUB SETUP block:
Click Login with GitHub. The instructions on how to connect your GitHub account will appear.
Follow the given instructions.
On the Git tab, expand the CLONE block.
In the CLONE block:
Click Load from GitHub. The field with your GitHub account's repositories will open.
From the field with your account's repositories, select the relevant repository.
From the field with the repository's branches, select the relevant branch.
Click clone USERNAME_REPOSITORY:BRANCH. The dApp script will be available on the File explorer tab.
Open Remix IDE. The File explorer tab will open.
On the File explorer tab, click Create new file. The field to enter the filename will open.
In the field, enter the filename. The FILENAME.sol window will open.
Copy and paste the script to the FILENAME.sol window:
In Remix IDE, go to the Solidity compiler tab.
On the Solidity compiler tab, click Compile FILENAME.sol.
In Remix IDE, go to the Deploy & run transactions tab.
On the Deploy & run transactions tab:
From the Environment drop-down list, select the Injected Provider - MetaMask. The MetaMask extension will open.
In the MetaMask extension, click Connect.
On the Deploy & run transactions tab, click Deploy. The MetaMask extension will open.
In the MetaMask extension, click Confirm. The Deployed Contracts block will display the address of the deployed dApp.
Optional. In the Deployed Contracts block, click Copy Address.
NOTE: This step is mandatory to test the dApp.
NOTE: Ensure copying the dApp address after its deployment.
Go to the Unit Zero Mainnet Explorer.
Paste the dApp address into the searchbar and click Enter on your keyboard. The page with the dApp details will open.
On the dApp details page, go to the Contract tab.
Click Read/Write contract. The Contract information block will display the dApp's methods.
In the Contract information block:
Click the arrow icon next to the method you want to invoke. The method's fields will be displayed.
In the method's fields, enter the value in the relevant Solidity Data Type.
Click the button with the relevant call type:
Read.
Or Write.
In the MetaMask wallet, click Confirm. The Unit Zero Mainnet Explorer interface will return the result of the invoked method.