I'm trying to Deploy my ERC20 contract in Ethereum main net, but I'm not sure about the bytecode.

I have seen a lot of tutorials but nobody tell something about uploading on main net and bytecode informations.

So i'm using remix , I already used Ropsten network and all work good, now I want to transfer my contract on main net and I'm not sure if I have to use 0xBytecode or only Bytecode generate by Remix. On Ropsten I used 0xBytecode, is it the same also on Main network?

And if i want to use MEW to deploy the contract, what I have to choose on the top right corner? (myetherwallet.com or etherscan.io)

  • You can deploy to the main net in the same way you did on Ropsten using remix
    – Jaime
    Commented Jan 25, 2019 at 11:41

1 Answer 1


To deploy your token contract to Ethereum main net, there are multiple ways. Concerning the options you mentioned, here are the solutions:

Remix with MetaMask

Just as how you deployed to the Ropsten test net, you could set the "Environment" to "Injected Web3" on the "Run" tab. Set your MetaMask account to the "Main Ethereum Network", as shown below. Then you are ready to hit the deploy button and get the contract deployed on the main net.

MetaMask Main Ethereum Network screenshot

MEW with bytecode

  1. Go to the contract section of MyEtherWallet and select "Deploy Contract".
  2. Paste the bytecode of your smart contract in "Byte Code" field. The bytecode could be find by clicking the "Details" button under "Compile" tab in Remix. The code you need to copy is what's inside "object", (with or without 0x)

Screenshot of bytecode object

  1. You could follow the rest of the instruction on MEW to connect to your wallet and eventually deploy your contract.
  • Ok, but in the last example, i have to use the normal bytecode or add 0x before it? Commented Jan 25, 2019 at 12:16
  • Both are acceptable by MEW. You don't need to prepend 0x. Commented Jan 25, 2019 at 12:18
  • And is the same using etherscan.io or myetherwallet.com on top right corner? Commented Jan 25, 2019 at 12:20
  • What do you mean by the "top right corner"? Commented Jan 25, 2019 at 12:40
  • on MEW, at the top right corner u can choose the network. Commented Jan 25, 2019 at 13:42

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.