3

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?

0

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

4
  • 2
    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
  • 2
    How can you set constructor parameters if you don't have ABI? Oct 1 '18 at 13:29
  • 2
    You are correct! If the constructor need parameters you only need the constructor ABI.
    – Ismael
    Oct 1 '18 at 17:15
  • how can I construct ABI? I know the parameters eg. (address to, address from, unit amount)
    – anonymous
    Jun 15 at 7:39

Your Answer

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