How To Create a Token (Step-by-Step ERC20 Code Explained)

Join the Bootcamp waitlist to fully understand how to write smart contracts and build your own dApp: https://whiteboardcrypto.com/

Here’s the code:
//SPDX-License-Identifier: MIT
pragma solidity 0.8.13;
import “https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/token/ERC20/ERC20.sol”;
import “https://github.com/OpenZeppelin/openzeppelin-contracts/blob/master/contracts/access/Ownable.sol”;
contract TheodoresToken is ERC20(“Theodores Token”, “TT”),Ownable{
function mintFifty() public onlyOwner {
_mint(msg.sender, 50 * 10**18);
}
}

(Visited 11 times, 1 visits today)

You might be interested in

LEAVE YOUR COMMENT

Your email address will not be published. Required fields are marked *

eos
EOS (EOS) 1,03 € 1,06%
aave
Aave (AAVE) 82,09 € 2,45%
the-graph
The Graph (GRT) 0,103996 € 13,39%
kusama
Kusama (KSM) 35,09 € 0,46%
waves
Waves (WAVES) 2,62 € 2,40%
dash
Dash (DASH) 56,85 € 2,49%
bitcoin
Bitcoin (BTC) 21.566,74 € 0,33%
ethereum
Ethereum (ETH) 1.541,25 € 0,32%
cardano
Cardano (ADA) 0,369501 € 0,76%
tether
Tether (USDT) 0,924474 € 0,10%
xrp
XRP (XRP) 0,380640 € 0,10%
solana
Solana (SOL) 22,48 € 1,38%
polkadot
Polkadot (DOT) 6,34 € 1,80%
usd-coin
USD Coin (USDC) 0,924474 € 0,13%
dogecoin
Dogecoin (DOGE) 0,088437 € 3,04%
uniswap
Uniswap (UNI) 6,68 € 2,19%
terra-luna
Terra Luna Classic (LUNC) 0,000178 € 3,89%
litecoin
Litecoin (LTC) 90,88 € 1,67%
chainlink
Chainlink (LINK) 6,69 € 0,76%
bitcoin-cash
Bitcoin Cash (BCH) 127,34 € 0,11%
algorand
Algorand (ALGO) 0,247047 € 1,33%
matic-network
Polygon (MATIC) 1,15 € 0,96%
stellar
Stellar (XLM) 0,085867 € 0,06%
cosmos
Cosmos Hub (ATOM) 13,50 € 2,54%
filecoin
Filecoin (FIL) 5,11 € 2,93%
tron
TRON (TRX) 0,059123 € 0,18%
ethereum-classic
Ethereum Classic (ETC) 22,17 € 2,89%
dai
Dai (DAI) 0,925397 € 0,30%
tezos
Tezos (XTZ) 1,08 € 1,93%
monero
Monero (XMR) 159,18 € 0,44%