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 16 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,807757 1,39%
aave
Aave (AAVE) 55,92 1,26%
the-graph
The Graph (GRT) 0,105747 3,00%
kusama
Kusama (KSM) 24,48 1,32%
waves
Waves (WAVES) 1,48 0,78%
dash
Dash (DASH) 35,91 1,90%
bitcoin
Bitcoin (BTC) 24.733,34 1,82%
ethereum
Ethereum (ETH) 1.723,13 0,52%
cardano
Cardano (ADA) 0,307210 5,94%
tether
Tether (USDT) 0,934780 0,02%
xrp
XRP (XRP) 0,489701 2,10%
solana
Solana (SOL) 18,09 2,64%
polkadot
Polkadot (DOT) 4,71 0,74%
usd-coin
USD Coin (USDC) 0,931931 0,18%
dogecoin
Dogecoin (DOGE) 0,062844 1,39%
uniswap
Uniswap (UNI) 4,30 3,40%
terra-luna
Terra Luna Classic (LUNC) 0,000087 6,24%
litecoin
Litecoin (LTC) 82,93 0,58%
chainlink
Chainlink (LINK) 5,59 3,64%
bitcoin-cash
Bitcoin Cash (BCH) 103,55 1,21%
algorand
Algorand (ALGO) 0,121057 5,37%
matic-network
Polygon (MATIC) 0,722348 4,15%
stellar
Stellar (XLM) 0,082056 0,13%
cosmos
Cosmos Hub (ATOM) 9,07 3,39%
filecoin
Filecoin (FIL) 3,91 2,49%
tron
TRON (TRX) 0,071770 1,91%
ethereum-classic
Ethereum Classic (ETC) 15,86 1,28%
dai
Dai (DAI) 0,933854 0,17%
tezos
Tezos (XTZ) 0,801277 0,50%
monero
Monero (XMR) 134,66 0,88%