Skip to main content

Restart session

Restarts the session by deleting all the provided input files and the resulting pending contracts.

note

v2 API is only meant for the sourcify.dev UI. Because it makes use of session cookies and it is not possible have Access-Control-Allow-Origin: * with credentials: true, meaning these endpoints can only be used on explicitly set domains on the browser. (e.g. sourcify.dev). Please use the v1 verification API if you want Sourcify on your frontend.

URL : /restart-session

Method : POST

Responses

Condition : Restart successful.

Code : 200 OK

Content :

"Session successfully restarted"

OR

Condition : Cannot restart the session.

Code : 500 Internal Server Error

Content :

{
"error": "Error in session restart"
}