# Sourcify — Get verified contract

Look up a verified Sourcify contract by chain ID and address via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Sourcify, configure supported query parameters and filters, and retrieve structured data including verified contract address, EVM chain identifier, overall reported match status, creation-bytecode match status, and runtime-bytecode match status for contract detail pages, and focused inspection.

Documentation: https://openany.si/sourcify/sourcify-get-verified-contract/b1f1a1c2-4760-4c7a-8c9d-38e56490243a/
API ID: b1f1a1c2-4760-4c7a-8c9d-38e56490243a
Provider: sourcify
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/sourcify/server/v2/contract/{chainId}/{address}
Page update time: 2026-12-03T02:49:10.547Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0 / call
The published contract currently has no usage charge. Authentication and service limits still apply.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:49:09.923Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Sourcify Verified Contract API

Provide chainId and a 20-byte hexadecimal address with the 0x prefix. The default response exposes verification identity and match information. Request only the extra fields you need with fields; fields and omit are mutually exclusive.

## What You Can Build

- **Contract detail pages**: Display verification match states beside a chain and address.
- **Focused inspection**: Request selected extra fields for a specific debugging task.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `address` | Verified contract address |
| `chainId` | EVM chain identifier |
| `match` | Overall reported match status |
| `creationMatch` | Creation-bytecode match status |
| `runtimeMatch` | Runtime-bytecode match status |
| `verifiedAt` | Recorded verification time |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Sourcify — Get verified contract request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {
        "chainId": {
          "type": "string",
          "description": "The chainId number of the EVM chain",
          "minLength": 1,
          "maxLength": 20
        },
        "address": {
          "type": "string",
          "description": "Contract's 20 byte address in hex string with the 0x prefix. Case insensitive.",
          "minLength": 42,
          "maxLength": 42
        }
      },
      "required": [
        "chainId",
        "address"
      ]
    },
    "query": {
      "type": "object",
      "properties": {
        "fields": {
          "type": "string",
          "description": "Comma-separated list of fields to include in the response. Can also be `all` to return every available field. See the endpoint description for the full list of available fields. `all` includes all source files and the full standard JSON input and output, so it is expensive. Do not use `all` in loops. Request only the fields that you need."
        },
        "omit": {
          "type": "string",
          "description": "Comma seperated fields to NOT include in the response. All fields except matching ones will be returned. Can't be used simultanously with `fields`. A short `omit` list returns almost every field, so it costs almost as much as `fields=all`. Do not use `omit` in loops. Use `fields` to request only what you need."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "address": {
      "type": "string"
    },
    "chainId": {
      "type": "string"
    },
    "creationMatch": {
      "type": "string"
    },
    "match": {
      "type": "string"
    },
    "matchId": {
      "type": "string"
    },
    "runtimeMatch": {
      "type": "string"
    },
    "verifiedAt": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/sourcify/server/v2/contract/1/0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "address": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
  "chainId": "1",
  "creationMatch": "match",
  "match": "match",
  "matchId": "1605500",
  "runtimeMatch": "match",
  "verifiedAt": "2024-08-08T13:28:37Z"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Does this call submit a contract for verification?
No. It retrieves an existing verified-contract record; verification submission is a separate operation.

### What address format is required?
Use a complete 42-character hexadecimal address including 0x, and the EVM chainId as a separate path segment.

### Can fields and omit be combined?
No. Choose fields to include selected data or omit to exclude fields, but not both in the same request.

### Should I use fields=all for repeated lookups?
Prefer a small explicit fields selection. all includes source files and compiler inputs/outputs and can produce a large response; avoid using all or broad omit selections in loops.

### Which API key should I use?
Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

### Where can I check the current request price?
Check the pricing area for the selected implementation. Follow its billing unit and any request-dependent rules before sending the request.

## Available implementations
- sourcify: https://openany.si/sourcify/sourcify-get-verified-contract/b1f1a1c2-4760-4c7a-8c9d-38e56490243a/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
