ethereum / remix-project

Remix is a browser-based compiler and IDE that enables users to build Ethereum contracts with Solidity language and to debug transactions.
https://remix-ide.readthedocs.io
MIT License
2.4k stars 910 forks source link

Button to verify Contract on Etherscan through API? #1717

Open markusbug opened 2 years ago

markusbug commented 2 years ago

Hi! I would really like to contribute to the Remix-IDE project! I think it would be a cool feature to have a button on deployed contracts, to automatically verify them on Etherscan, either through their API or their website.

Is it ok if I implement this?

markusbug commented 2 years ago

Problem: The Etherscan API Free Tier only allows 5 Requests/Seconds. I think that the remix-ide user base is bigger than that. At the moment I just forked the Repo and added a Button to open the Website for verification.

yann300 commented 2 years ago

There's already an etherscan plugin in Remix and what we can do would be to better integrate it to the "Run and Deploy UI". Could you create a PR with that button and I can show you how to plug it to the etherscan plugin.

markusbug commented 2 years ago

Great! I created a PR, with the Code for the Button. At the moment it is just an onClick to a function, which then opens the Etherscan.io/verifyContract Page.

1727 @yann300