Cryptos is an implementation of the ERC-20 token standard on the Ethereum blockchain. ERC-20 is a widely adopted standard for fungible tokens on the Ethereum platform, allowing for seamless interaction with decentralized applications (DApps) and other smart contracts.
- Name: Cryptos
- Symbol: CRPT
- Decimals: 0 (Note: Uncomment and set to 18 if you want to use decimals)
- Total Supply: 1,000,000 tokens
-
totalSupply()
: Returns the total supply of Cryptos tokens. -
balanceOf(address tokenOwner)
: Returns the balance of tokens for a given address. -
transfer(address to, uint tokens)
: Transfers a specified amount of tokens to the given address. -
allowance(address tokenOwner, address spender)
: Returns the remaining allowance that a spender has to transfer tokens on behalf of a token owner. -
approve(address spender, uint tokens)
: Approves a spender to transfer a specified amount of tokens on behalf of the owner. -
transferFrom(address from, address to, uint tokens)
: Transfers tokens from one address to another on behalf of a third-party (if approved).
-
Transfer(address indexed from, address indexed to, uint tokens)
: Triggered when tokens are transferred from one address to another. -
Approval(address indexed tokenOwner, address indexed spender, uint tokens)
: Triggered when the allowance of a spender is approved by the token owner.
The contract is deployed with a total supply of 1,000,000 tokens, and the deployer (founder) initially holds the entire supply.
Feel free to use this contract as a template for creating your own ERC-20 tokens on the Ethereum blockchain.
This smart contract is licensed under the GNU General Public License v3.0. Please refer to the license file for more details.
- Kumar Mohit
This code is provided as-is, without any warranty or support. Use it at your own risk.
To deploy this contract on the Ethereum blockchain:
- Clone the repository.
- Compile the contract using a Solidity compiler.
- Deploy the compiled contract to the Ethereum blockchain.
For more detailed instructions, refer to the Ethereum documentation.