This Solidity contract represents a simple token contract with minting and burning functions.
This Solidity contract, MyToken.sol
, implements a basic token with the following features:
- Token Name: "SOLANA"
- Token Abbreviation (Symbol): "SOL"
- Initial Total Supply: 0
- A mapping to track token balances for each address.
- A
mintTokens
function for creating new tokens and updating the total supply and balances. - A
burnTokens
function for destroying tokens, which decreases the total supply and the balance of a specified address, subject to balance checks.
- Solidity 0.8.18 or compatible versionl
- Remix IDE for Online Compilation
-
Clone this repository:
git clone https://github.com/satya112003/ETH_BEG.git
-
Navigate to the project directory:
cd ETH_BEG
-
Compile the
MyToken.sol
contract using a Solidity compiler of your choice. -
Or compile and Deploy in Remix IDE
To create new tokens, use the mintTokens
function. Provide the recipient's address and the amount of tokens to mint.
To burn (destroy) tokens, use the burnTokens
function. Provide the address from which to burn tokens and the amount to burn.
- Satya
- GitHub: satya112003
This project is licensed under the MIT License - see the LICENSE file for details.