blockscout / blockscout

Blockchain explorer for Ethereum based network and a tool for inspecting and analyzing EVM based blockchains.
http://docs.blockscout.com
GNU General Public License v3.0
3.61k stars 2.41k forks source link

Add ability to check sc verification status via verification identifier in API v2 #10499

Open vbaranov opened 3 months ago

vbaranov commented 3 months ago

Similar functionality exists in API v1: sc verification endpoint returns identifier of verification which then can be used as input to another HTTP endpoint to check its status. It is suggested to add an option for existing API v2 (RESTful) endpoints for smart-contract verification of getting status of verification through identifier in addition to existing check through websockets endpoint.

vbaranov commented 2 months ago

A user feedback: "However for dev ergonomics do you have any plans on exposing the error messages via the API call?".

So, we could return in the analog of checkverifystatus API endpoint in v2 the exact error returned by sc-verifier microservice.

vbaranov commented 1 month ago

UPD: it would be useful to apply this logic not only to Solidity but Vyper contracts as well.

RaresGeo commented 3 weeks ago

@vbaranov Hey, I noticed there is a websocket for checking verification status by accident but I cannot find any documentation on how to use it or even its existence. Am I missing something, could you please point me in the right direction?