How to clone(fork) a smart contract with only bytecodes deployed on etherscan.io (without abi and source code)?

First, I try to submit the same bytecodes from etherscan.io using web3, but it failed. The submitted bytecodes were tampered by signature.

Second, I try to deploy by geth, but it needs abi, which I cannot find on etherscan.io

Last but not least, I know the msg.data structure, eg, (address to, address from, uint256 amount)

Deploying contract using byteCode

"Actually the data of deployed contract transaction is bytecode concatenate with abi encoded of constructor parameters." "If you know inputs of constructor, you can use ethereumjs-abi to deploy contract."

but I don't know how?


1 Answer 1


you dont need an abi to deploy. deploying with just bytecodes is possible using etherjs

  • This was tagged solidity.
    – JustKevin
    Nov 15, 2021 at 4:00

Not the answer you're looking for? Browse other questions tagged or ask your own question.