This repository contains an ERC-20 token contract written in Solidity, which follows the ERC-20 standard for fungible tokens.
The contract implements functions such as:
totalSupplybalanceOftransfer
The contract is deployed on the Somnia Testnet
- Go to Remix IDE: Visit Remix, open the
MyToken.solfile from this repository. - Compile: Set Solidity version
0.8.26and click Compile. - Deploy:
- Use Injected Web3 for the environment.
- Ensure you're connected to the Somnia Testnet.
- Deploy by providing an initial supply (e.g., 1,000,000 tokens).
After deployment, you can interact with the contract by:
- Checking the total supply using
totalSupply. - Checking the balance of any address using
balanceOf. - Transferring tokens using the
transferfunction.