IDE & Hands-on Practices
This guide explains how to deploy an EGC-20 token (ERC-20 equivalent for EGC ) using OpenZeppelin Wizard, Remix IDE, and MetaMask.
Step 1: Configure Your Token with OpenZeppelin Wizard
Configure token in OpenZeppelin Wizard
Open the OpenZeppelin ERC-20 Wizard: 👉 https://wizard.openzeppelin.com/#erc20
Enter your Token Name and Token Symbol.
Example: replace
"MyToken"with your token name and"MTK"with your token symbol.
Set the Premint Amount.
Example:
1_000_000for an initial supply of 1,000,000 tokens.
Click Open in Remix.
This will generate the smart contract code and open it directly in Remix IDE.
Step 2: Pre-requisites
Before deployment, ensure you have the following:
MetaMask browser extension installed.
MST Testnet network added in MetaMask.
Go to https://testnet.egcscan.com/, scroll to the bottom, and click Add EGC Testnet.
tMSTC test funds in your wallet.
Request funds from the MST Faucet: https://faucet.egcscan.com/.
First-time Remix IDE users will see an initial setup screen:
AI and Analytics Preferences: Select Accept
How you typically use Remix: Select Learning
Step 3: Understanding Remix IDE
Remix IDE is a browser-based development environment for writing, compiling, and deploying smart contracts. For EGC Blockchain developers, Remix acts as the bridge between contract code (Solidity) and the EGC Testnet (via MetaMask).
Key Features of Remix:
File Explorer: Manage your Solidity smart contract files.
Solidity Compiler: Compile contracts before deployment.
Deploy & Run Transactions: Deploy contracts to the MST Blockchain using MetaMask.
Debugger & Logs: Analyse contract execution and transaction results.
You do not need to install anything; Remix runs directly in your browser.
Step 4: Deploy Using Remix IDE
Connect Remix to MetaMask
Open the Deploy & Run Transactions tab in the left panel.
Open the Environment dropdown and select Injected Provider – MetaMask.
If not visible, click Customise this list, then under Deploy using a Browser Extension, enable Deploy through the MetaMask browser extension.
In MetaMask, select the EGC Testnet network. This should be reflected in Remix.
Step 5: Verify Deployment
Check the Deployed Contracts section in Remix.
Alternatively, paste the contract address in MST Testnet Explorer: https://testnet.egcscan.com/ to view contract details.
Congratulations! You have successfully deployed your first EGC-20 token on the EGC Blockchain using Remix IDE.
Last updated