For example, I want to deploy a contract to my local testnet. But I only have its opcode from etherscan. How to deploy the contract with just those runtime bytecode?


You will also need ABI, not just bytecode. Look at the next article, it will give you good starting point: https://medium.com/@prashantprabhakarsingh/deploying-contract-using-bytecode-myetherwallet-and-remix-10f643a82d40

  • 1
    You do not need the ABI to deploy a contract. It is needed if you want to interact with the contract. – Ismael Sep 30 '18 at 15:50
  • 1
    How can you set constructor parameters if you don't have ABI? – KwahuNashoba Oct 1 '18 at 13:29
  • 1
    You are correct! If the constructor need parameters you only need the constructor ABI. – Ismael Oct 1 '18 at 17:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy