Alchemy: Create Your Own ERC20 Cryptocurrency
Learn how to create your own ERC20 Cryptocurrency.
What is ERC20?
1. First, download and install S3FS-FUSE on your local environment.
2. Set up an Access Key file for use with S3FS-FUSE.
3. Mount your bucket.
4. Now, navigate into the mounted Filebase bucket.
5. Install Hardhat with the following command:
6. Initialize the Hardhat setup prompt with the command:
8. From the Alchemy dashboard, we need to create an app.

9. Create a new app. For our example, we called our app Token.

10. Then, from our App’s page, select ‘View Key’:

11. Copy your app’s HTTP Key:

12. Next, open the hardhat.config.js file in your project’s directory.
13. Next, install dotenv:
14. Then, copy your cryptowallet’s private key.
15. Create a new file called .env.
.env.16. In your .env file, input the following variable:
.env file, input the following variable:17. In your hardhat.config.js file, insert the following line at the top of the file:
18. Create a new file called Token.sol. Input the following content into this new file:
Token.sol. Input the following content into this new file:19. In your project’s scripts directory, rename the file sample-script.js to deploy.js, and replace the existing content with the following:
scripts directory, rename the file sample-script.js to deploy.js, and replace the existing content with the following:20. Now we’re ready to compile and deploy our token on the Polygon Mumbai network.
21. We’ll need some test MATIC to cover the gas fees of our transaction.
22. After you have MATIC in your wallet, deploy your token on the Mumbai network:
23. Now you can add your token to your Crypto Wallet.
24. Click on the Metamask browser extension.

25. Enter your Token’s contract address that was returned when you deployed it and your Token’s symbol:

Last updated