Metamask: Metamask not showing balance of custom ERC20 token (hardhat)
Februari 6, 2025 | by Gusri Efendi

Here’s an article based on your problem:
Metamask Not Showing Balance of Custom ERC20 Token (Hardhat)
I’m trying to test a custom ERC-20 token using Metamask and Hardhat. After deploying my ERC-20 coin and minting some to one of the HardHat default accounts, I try to add the token to Metamask. However, when I attempt to view or manage my token balance on Metamask, it is not showing any value.
This issue has been plaguing me for a while now, and I’m hoping someone can help me figure out what’s going on. Here are some steps I’ve taken so far:
- Deployed the token: I deployed my custom ERC-20 coin to Hardhat using the
solidity
contract deployment script.
- Minted tokens: I minted a few thousand tokens to one of the default accounts, which is also being used by Metamask.
- Added to Metamask
: I tried adding these tokens to my Metamask wallet, but it’s not showing up.
Here are some potential issues that could be causing this problem:
- Token balance mismatch: Are you sure that the token has been successfully deployed and minted? Double-check your contract deployment script and ensure that the token is being transferred correctly.
- Metamask account setup: Is your Metamask wallet set up to use the default accounts for testing purposes? Make sure that your MetaMask account is connected to the same Ethereum network as the Hardhat contracts.
- Token configuration
: Are you using the correct settings for the custom ERC-20 token on your Metamask wallet and in Hardhat? Ensure that your token’s name, symbol, and decimals are set correctly.
To troubleshoot this issue further, I’d like to ask:
- Can you provide more information about your contract deployment script and the tokens being minted?
- Have you tested your Metamask account setup and token configuration on a separate Ethereum network or a different MetaMask wallet?
If you’re still experiencing issues after these steps, please let me know, and I’ll do my best to assist you further.
RELATED POSTS
View all