Now that we have generated the code for our ERC20 meme token, the next step is to deploy it. Before deploying the token on the main Ethereum network, we will first deploy it on the Goerli Testnet. This allows us to test our token in a risk-free environment.
The Goerli Testnet is one of Ethereum’s test networks (testnets), which developers use for testing their decentralized applications before deploying them on the main Ethereum network (mainnet). Goerli Testnet, just like other Ethereum testnets, works similarly to the mainnet, but the Ether on it has no real value.
Using Goerli Testnet allows us to ensure our token works as expected, without spending real Ether. This makes it a crucial step in the development and deployment of smart contracts.
Before we can deploy our token, we need some Ether in our Metamask wallet. Since we are using the testnet, we will use Testnet Ether, which can be obtained for free.
To get free Testnet Ether, visit the Goerli Faucet.
Follow the instructions on the website to receive free Testnet Ether in your MetaMask wallet.
You should see a screen like this after completion. You are going to receive 0,02 GoerliETH
Make sure your MetaMask wallet is connected to the Goerli Testnet.
Now, let’s deploy the contract on Goerli Testnet using Remix IDE:
Go back to your Remix IDE.
Click on the “Deploy & Run transactions” icon on the left side of the screen.
Ensure the environment is set to “Injected Provider - Metamask” in the drop-down menu. This option connects to Metamask (Again. Make sure your MetaMask wallet is connected to the Goerli Testnet)
From the “Contract” drop-down menu, select “LearnCoin” (your contract should be listed here after being successfully compiled).
Click on “Deploy”.
You should have received the GoerliETH from the faucet. You can confirm your transaction on metamask and wait it to confirm on the Goerli testnet! Once the transaction is confirmed, your contract will be deployed to the Goerli Testnet! Your Remix console below must look like this:
And you should be able to find your contract deployed by clicking “View on Etherscan”
Congratulations, you have now created your own ERC20 token in a safe, testnet environment! You can find our Learn Coin here: https://goerli.etherscan.io/address/0x70a1704f22c476d64c6dfd5ad2e1a75dc2928cf0
Now that we have generated the code for our ERC20 meme token, the next step is to deploy it. Before deploying the token on the main Ethereum network, we will first deploy it on the Goerli Testnet. This allows us to test our token in a risk-free environment.
The Goerli Testnet is one of Ethereum’s test networks (testnets), which developers use for testing their decentralized applications before deploying them on the main Ethereum network (mainnet). Goerli Testnet, just like other Ethereum testnets, works similarly to the mainnet, but the Ether on it has no real value.
Using Goerli Testnet allows us to ensure our token works as expected, without spending real Ether. This makes it a crucial step in the development and deployment of smart contracts.
Before we can deploy our token, we need some Ether in our Metamask wallet. Since we are using the testnet, we will use Testnet Ether, which can be obtained for free.
To get free Testnet Ether, visit the Goerli Faucet.
Follow the instructions on the website to receive free Testnet Ether in your MetaMask wallet.
You should see a screen like this after completion. You are going to receive 0,02 GoerliETH
Make sure your MetaMask wallet is connected to the Goerli Testnet.
Now, let’s deploy the contract on Goerli Testnet using Remix IDE:
Go back to your Remix IDE.
Click on the “Deploy & Run transactions” icon on the left side of the screen.
Ensure the environment is set to “Injected Provider - Metamask” in the drop-down menu. This option connects to Metamask (Again. Make sure your MetaMask wallet is connected to the Goerli Testnet)
From the “Contract” drop-down menu, select “LearnCoin” (your contract should be listed here after being successfully compiled).
Click on “Deploy”.
You should have received the GoerliETH from the faucet. You can confirm your transaction on metamask and wait it to confirm on the Goerli testnet! Once the transaction is confirmed, your contract will be deployed to the Goerli Testnet! Your Remix console below must look like this:
And you should be able to find your contract deployed by clicking “View on Etherscan”
Congratulations, you have now created your own ERC20 token in a safe, testnet environment! You can find our Learn Coin here: https://goerli.etherscan.io/address/0x70a1704f22c476d64c6dfd5ad2e1a75dc2928cf0