Deploying ERC20 and cost of transfers

Hello everyone, and in advance thanks for reading and wanting to help me

I have deployed a couple of tokens, doing tests, in the ropsten, from remix, using this code and some other variation:

pragma solidity ^0.5.0;

import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC20/ERC20.sol";
import "https://github.com/OpenZeppelin/openzeppelin-contracts/blob/v2.5.0/contracts/token/ERC20/ERC20Detailed.sol";

contract Token is ERC20, ERC20Detailed {

    constructor () public ERC20Detailed("Token", "TKN", 18) {
        _mint(msg.sender, 1000000 * (10 ** uint256(decimals())));
    }
}

When I do this, I have a wallet in metamask, with a fictitious balance of ethereum, and with this fictitious balance of ether the creation of the token that I have created in that network is paid.

  1. If I link a real wallet, and pay from there, does that token officially remain on the real ethereum network?

  2. When I send (in the case of my tests) tokens that I have created, from one fictitious wallet to another, the transaction has a cost of gas, which in turn is a cost of ethereum.
    If my token is deployed in the real network, to move or transfer tokens that I have created, do I have to pay a commission with ether for each transaction?
    I clarify this last question: should I also have etherum to transfer token from one wallet to another?

1 Like

Hi @Refresko,

If you deployed to mainnet, you would need to pay mainnet Ether. Your token would then be on mainnet.

To transfer an amount of tokens from one account to another requires a transaction that the account creating the transaction has to pay for. On a public testnet you pay in testnet Ether. On mainnet you pay in Ether. So every time a token holder wants to transfer their tokens it costs Ether.

Please note, gas prices can be much higher on mainnet. See: https://www.ethgasstation.info/

Thank you very much for answering :slight_smile:

1 Like