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 26 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) 0,682679 € 0,20%
aave
Aave (AAVE) 89,20 € 1,61%
the-graph
The Graph (GRT) 0,151587 € 5,30%
kusama
Kusama (KSM) 24,52 € 1,84%
waves
Waves (WAVES) 2,08 € 0,07%
dash
Dash (DASH) 29,62 € 0,96%
bitcoin
Bitcoin (BTC) 40.483,50 € 1,22%
ethereum
Ethereum (ETH) 2.065,96 € 2,10%
cardano
Cardano (ADA) 0,414662 € 6,24%
tether
Tether (USDT) 0,924819 € 0,17%
xrp
XRP (XRP) 0,586907 € 2,42%
solana
Solana (SOL) 58,08 € 3,80%
polkadot
Polkadot (DOT) 5,59 € 4,15%
usd-coin
USDC (USDC) 0,927429 € 0,09%
dogecoin
Dogecoin (DOGE) 0,088877 € 2,68%
uniswap
Uniswap (UNI) 5,54 € 3,88%
terra-luna
Terra Luna Classic (LUNC) 0,000201 € 2,86%
litecoin
Litecoin (LTC) 67,30 € 0,59%
chainlink
Chainlink (LINK) 14,20 € 1,07%
bitcoin-cash
Bitcoin Cash (BCH) 227,22 € 1,96%
algorand
Algorand (ALGO) 0,141239 € 0,33%
matic-network
Polygon (MATIC) 0,760781 € 2,13%
stellar
Stellar (XLM) 0,115252 € 2,06%
cosmos
Cosmos Hub (ATOM) 9,09 € 0,35%
filecoin
Filecoin (FIL) 4,40 € 0,36%
tron
TRON (TRX) 0,097233 € 1,48%
ethereum-classic
Ethereum Classic (ETC) 18,75 € 0,52%
dai
Dai (DAI) 0,924407 € 0,10%
tezos
Tezos (XTZ) 0,814272 € 0,67%
monero
Monero (XMR) 158,09 € 0,85%