Skip to content

Use hardhat-etherscan with artifacts or solt files for verification #1937

Discussion options

You must be logged in to vote

Sometimes, we want to deploy contracts with only their interface(ABI) and bytecode, and with a pre-build solt file to verify in the etherscan GUI. In this scenario where we only have these data (without any solidity files), we can use hardhat-etherscan to verify programmatically?

Can you expand on what do you mean by this? It seems like you want to verify a contract but you don't have the original source code. If that's the case, then that's not possible, because you need to provide something that, when compiled, will generate the same bytecode that is on-chain. But maybe do you mean something else? Maybe you can give us a precise example.

And yes, asking here is perfectly fine!

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by NanezX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants