[Ethereum] Having trouble verifying a contract on etherscan.io

etherscanverify

I'm trying to verify a contract on etherscan.io.

The contract itself has a number of imports and libraries and has been deployed using certain constructor arguments.

I've copy/pasted the code from all the .sol files into the validation textbox on etherscan, have selected the same compiler version, but am not entirely sure how to provide the ABI-encoded constructor arguments. Do they want the hex, JSON or what?

The code does not verify otherwise.

Best Answer

In case you want to use a simple online tool to encode parameters you could use https://abi.hashex.org

You insert the abi code to automatically parse parameters types or just enter them manually. In Function type selector constructor should be picked.

Here is an example, at the bottom are abi-encoded parameters that you enter in etherscan.io constructor parameters field input.

Example