[Ethereum] find the “constructor arguments” for a contract deployed with Remix

abietherscanremixsolidityverify

When try to verify token, I dont know what to put in for this line:

Constructor Arguments ABI-encoded (For contracts that accept constructor parameters)

I made token after looking at a YouTube video on how to do it.

I used this code:

https://gitlab.com/pedram31/cryptocoopx-ccx/blob/master/ccx-src.sol

And pasted it here:

http://remix.ethereum.org/#optimize=true&version=soljson-v0.4.24+commit.e67f0147.js

Now I have no idea how to verify my token:

https://etherscan.io/tx/0x08e3ec9a41318c26fcd6b9d26feba612628aee28e52e855a542a864fc41ef01e

I saw that there you can copy some numbers after 0029 but there is nothing after 0029.

I also saw that I can use https://abi.hashex.org/ or this https://abi.sonnguyen.ws/, but I do not know how to use these websites.

Best Answer

Using your constructor function:

CCXTokenERC20(uint256 initialSupply, string tokenName, string tokenSymbol)

And you initial parameters:

10000000000, Mooneta, MNTX

You can use https://abi.hashex.org/ like so:

enter image description here

This results in the following value which you should be able to use:

00000000000000000000000000000000000000000000000000000002540be400000000000000000000000000000000000000000000000000000000000000006000000000000000000000000000000000000000000000000000000000000000a000000000000000000000000000000000000000000000000000000000000000074d6f6f6e6574610000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000044d4e545800000000000000000000000000000000000000000000000000000000
Related Topic