Verify smartcontract on sepolia-era.zksync.network with hardhat plugin #732
-
Team or ProjectNo response EnvironmentTestnet Select the Dev Tool you are usingHardhat Plugins Provide the version of the tool (if applicable)No response Provide a brief description of the functionality you're trying to implement and the issue you are running into.How do I verify a smartcontract on https://sepolia-era.zksync.network/? On https://sepolia.explorer.zksync.io/ I was able to verify using hardhat-zksync-verify without any problems. Is there an easy way to do this on https://sepolia-era.zksync.network/? Looking at the docs for explorer it seems similar to Etherscan and I would need an API key, but the link here is broken Repo Link (Optional)No response Additional DetailsNo response |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
To verify a smart contract on the Sepolia Era network of ZKsync using the Hardhat plugin, you need to ensure that your
If you encounter issues with broken links in the documentation or need an API key and cannot find information, I recommend reaching out directly to ZKsync support or checking the updated documentation at ZKsync Docs. For further details on using the Hardhat plugin for ZKsync, you can refer to the Hardhat ZKsync Verify Plugin Documentation. Your feedback helps us serve you better. If this fully addresses your question, please give it a thumbs up. If it doesn't, please give it a thumbs down. This will inform the community and team so we can improve our support. |
Beta Was this translation helpful? Give feedback.
Both ZKsync Explorer and Etherscan explorer for Era have different APIs, which makes the verification process a bit different for each.
The
hardhat-zksync-verify
plugin was originally built to verify contracts specifically on the ZKsync Explorer since, at the time, we didn’t have an Etherscan explorer for Era. However, we're actively working on updating the plugin to support both explorers.You can expect the new version to be released later this week or early next week.
If you need a solution right now, the latest foundry-zksync release already supports both explorers. Just use
forge verify-contract
to verify your contracts.