I deploy my contract to etherscan (rinkedby and etherscan). I have my total supply set but i can't see any in in network after deploy.

I even copy the contract ceration code exactly from this contract address to deploy but it does not work: Contract code here. And from several ICO contract address that is live too. (including those with event Transfer to transfer token to owner)

Can anyone verify that is this a code/deployment problem or etherscan testnet problem?

Note: Similar question asked in this stackoverflow post This is another link to smart contract that shows the same thing

sample code:

function Token(address _crowdSaleAddress) public {

        locked = true;  // Lock the Crowdsale function during the crowdsale
        totalSupply = 300000000e18; 
        name = "TGAME"; // Set the name for display purposes
        symbol = "TGAME"; // Set the symbol for display purposes
        decimals = 18; // Amount of decimals for display purposes
        crowdSaleAddress = _crowdSaleAddress;                             
        balances[crowdSaleAddress] = totalSupply;
  • Do you mean that when you get the balance of crowdSaleAddress it returns 0?
    – vhie
    Oct 8, 2018 at 8:03
  • @vhie yes it shows 0 and erc20 token owner also shows 0 Oct 8, 2018 at 8:06
  • 1
    How do you invoke the method that returns the balance?
    – vhie
    Oct 8, 2018 at 8:16
  • Can you share github repo and your deployment method. Your question is not self-explanatory for most here. Please, ask for help with a well-defined problem Oct 8, 2018 at 9:09
  • What is the link to your contract on the testnet? Oct 8, 2018 at 9:55

1 Answer 1


Your contract works as expected. It is simply an etherscan indexing issue that prevents the information from showing.

If you look up the balance of 0x40bd749d975349e6aaf310007d3ee00bcef5ebdd using the balanceOf function on Etherscan's read contract page, you will get 1000000000000000000000000 as expected.

Etherscan's token info page is largely based on the events emitted by your contract. If you add emit Transfer(0x0, msg.sender, totalSupply); to the end of your constructor, etherscan will be able to detect the single owner as a token holder.

Alternatively, if you want to force it to detect this without redeploying, just send the entire token balance from the owner to itself. This will register a transfer event as well.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.