Skip to main content

Clear session

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


Session-based API is only meant for the 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. Please use the verification API if you want Sourcify on your frontend.

URL : /session/clear

Method : POST


Condition : Session cleared successfully.

Code : 200 OK

Content :

"Session successfully cleared"

Condition : Cannot clear the session.

Code : 500 Internal Server Error

Content :

"error": "Error in clearing session"