Testnet
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 Testnet Explorer page.
In the footer of the page, click Add Unit Zero Testnet. 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 Testnet.
Set the New RPC URL to https://rpc-testnet.unit0.dev.
Set the Chain ID to 88817.
Set the Currency symbol to UNIT0.
Optional. Set the Block explorer URL to https://explorer-testnet.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.