Giter VIP home page Giter VIP logo

metameatlink / mytoken-solidity-contract Goto Github PK

View Code? Open in Web Editor NEW

This project forked from intelligent7/mytoken-solidity-contract

0.0 0.0 0.0 0 B

This repository contains a Solidity smart contract called "MyToken" that represents an intelligent token. The contract creates an initial supply of 1,000,000 tokens and allows for the minting of additional tokens, up to a maximum of 10 tokens

Solidity 100.00%

mytoken-solidity-contract's Introduction

MyToken Solidity Contract

This repository contains a Solidity smart contract called "MyToken" that represents an intelligent token. The contract creates an initial supply of 1,000,000 tokens and allows for the minting of additional tokens, up to a maximum of 10 tokens.

Contract Details

The MyToken contract is an ERC-20 compliant token contract with the following properties:

  • Name: Intelligent Token
  • Symbol: INT
  • Total Supply: 1,000,000 tokens with 18 decimal places

The contract initializes the total supply of tokens in the constructor and assigns it to the deployer's address. The balanceOf mapping keeps track of the token balance for each address.

Getting Started

To interact with the smart contract, you can follow these steps:

  1. Deploy the MyToken contract on your desired blockchain network using a Solidity-compatible development environment such as Remix IDE.
  2. After deployment, the total supply of tokens will be assigned to the deployer's address.
  3. You can view the token balance of any address by accessing the balanceOf mapping.
  4. To mint additional tokens, call the mint function and provide the desired amount (up to a maximum of 10 tokens). The tokens will be credited to the caller's address.

Note: Ensure that you adhere to any limitations on the maximum minting amount specified in the contract.

Usage Example

Here's an example of how to interact with the MyToken contract:

// Deploy the MyToken contract and get the contract instance

// Access the balance of a specific address
uint256 balance = myToken.balanceOf(address);

// Mint additional tokens (up to 10 tokens)
myToken.mint(5);
Feel free to modify and use this code according to your needs. If you have any questions or suggestions, please open an issue or reach out to the repository owner.

mytoken-solidity-contract's People

Contributors

intelligent7 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.