[Contract Verification] Cannot verify contract via the block explorer api "Failed to send verification request" #518
-
EnvironmentTestnet Issue Type
Contract Address0x78cb29b5b1c833d349285b12642635a11163d250 Compiler TypeMulti-part contract zkSolc Versionv1.3.18 Solc Version0.8.18 Contract Namecontracts/TokenVesting.sol:TokenVesting CodeApi call Im running:
ABI
Constructor Arguments0x00000000000000000000000063de3d2c6981f95c440bb095751a4b6d87bb42af Hardhat Verify Plugin VersionNo response Repo Link (Optional)No response Additional DetailsApi endpoint im using is: https://block-explorer-api.sepolia.zksync.dev/api Libraries used:
Thank you for any help 🙏 |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 16 replies
-
Did you have any luck trying to verify it via the block explorer instead of with the plugin? |
Beta Was this translation helpful? Give feedback.
-
it seems to be failing on this line, but what exactly causes this I'm unsure https://github.com/matter-labs/block-explorer/blob/c094d9960e1a57075b69cc60c998acb1561ef9a8/packages/api/src/api/contract/contract.controller.ts#L199 I was trying to spin up the block explorer locally but thats another thing in itself it seems :D |
Beta Was this translation helpful? Give feedback.
-
If you are looking a way to verify user deplyed contracts/ pre defined contracts? |
Beta Was this translation helpful? Give feedback.
-
Hey @gedithejedi , looking at the way you are trying to send the request, here are few things i noticed about the formatting.
Try this and inform me if it worked for you! |
Beta Was this translation helpful? Give feedback.
Thanks for the full parameters.
First of all, this is how should
compilerSolcVersion
look like:0.8.18
. (remove thev
and+commit.87f61d96
)In order to check your verification status use the 5 digit number you received and check it like this:
https://explorer.sepolia.era.zksync.dev/contract_verification/13361
Make sure that you included all the source files necessary for verification.