I am attempting to deploy a simple erc 20 token on the ethereum mainnet. I have tried twice now to deploy the contract each time paying around $20 in gas fees for contracts that would run out of gas before being deployed. I customized the fees (mistake on my part since this is my first time) and set the gas limit to 200000 and the gas price to 55 GWEI and the second time setting the gas limit to 400000 and the gas price to 20 GWEI. I have already looked at websites such as eth gas station. The recomended fees are around $80 which seems a bit extreme and I am wondering how can I lower gas prices? What should I set the gas limit to to ensure it deploys? What should I set the gas price to to ensure it deploys?

  • Hi. First of all, before doing anything, test on some testnet instead of going directly (I assume from your post) on mainnet. Commented Jul 2, 2021 at 14:05
  • I have tested on the ropsten test network before deploying Commented Jul 2, 2021 at 17:09

2 Answers 2


Currently Ethereum is the most used blockchain so its unlikely that the gas fee will go low at anytime. I would suggest that you deploy that contract on Binance Smart chain, fees are low that side and everything else gets to be the same.

  • What is the erc20 equivelent for the binance chain? Commented Jul 1, 2021 at 17:44
  • BEP-20 is a token standard on Binance Smart Chain that extends ERC-20
    – Barcollin
    Commented Jul 1, 2021 at 17:47
  • Could I deploy a current erc 20 token? If I’m sending tokens to a MetaMask wallet could I add it in as a custom token without adding the binance smart chain to the networks list? Commented Jul 1, 2021 at 22:38
  • You will need to add Binance smart chain network. Please find details on how to setup Bsc on metamask from this link academy.binance.com/en/articles/…
    – Barcollin
    Commented Sep 22, 2021 at 5:35

How much gas is required to execute a function depends on how complex that function's logic is. Each individual operation has a gas cost based roughly on how much computing resources will be required to perform that operation (e.g. writing to storage is much more expensive than adding two integers). The total gas cost of your function is the sum of the gas costs of all its individual operations.

The creators of Ethereum wanted to make sure someone couldn't clog up the network with an infinite loop, or hog all the network resources with really intensive computations. So they made it so transactions aren't free, and users have to pay for computation time as well as storage.

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.