Skip to main content

Clear session

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

note

Session-based 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 verification API if you want Sourcify on your frontend.

URL : /session/clear

Method : POST

Responses

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"
}