Skip to main content

Overview

Sourcify provides a public server API for verification, and checking if a contract is verified, and a repository API for retrieving files.

Repository

There are two ways to access files in the repository:

Server

Deployed server APIs are: https://sourcify.dev/server and https://staging.sourcify.dev/server.

Verification API (v1)

  • Verify : POST / or POST /verify

Verification API (v2 - session based)

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.

Other