# checkContractVerification

**Identifier:** `sourcify_checkContractVerification`

**Provider:** [Sourcify](https://kirha.com/providers/sourcify.md)

Check whether a smart contract address has verified source code on Sourcify, on one EVM chain or across every chain where it is deployed, with the match quality. Use it to vet a token, protocol or contract before interacting with it: unverified code cannot be audited.

## Run it with the CLI

```bash
kirha tools run sourcify_checkContractVerification \
  --input '{
    "address": "<address>"
  }'
```

`--input` takes a JSON object that matches the input schema. Pass `--input -` to read it from stdin.

## Call it over HTTP

```bash
curl https://api.kirha.com/tools/v1/execute \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: **********' \
  --data '{
  "tool_name": "sourcify_checkContractVerification",
  "input": {
    "address": "<address>"
  }
}'
```

Replace the stars with an API key from https://app.kirha.com/api-keys.

## Input schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "properties": {
    "address": {
      "pattern": "^0x[0-9a-fA-F]{40}$",
      "type": "string"
    },
    "chain": {
      "description": "Chain id or name, e.g., 1, base, arbitrum one; omit to check all chains",
      "type": "string"
    }
  },
  "required": [
    "address"
  ],
  "type": "object"
}
```

## Output schema

```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "properties": {
    "address": {
      "type": "string"
    },
    "chains": {
      "items": {
        "additionalProperties": false,
        "properties": {
          "chainId": {
            "type": "string"
          },
          "chainName": {
            "type": "string"
          },
          "match": {
            "enum": [
              "exact",
              "partial",
              "none"
            ],
            "type": "string"
          },
          "verifiedAt": {
            "type": "string"
          }
        },
        "required": [
          "chainId",
          "match"
        ],
        "type": "object"
      },
      "type": "array"
    },
    "context": {
      "type": "string"
    },
    "verified": {
      "type": "boolean"
    }
  },
  "required": [
    "context",
    "address",
    "verified",
    "chains"
  ],
  "type": "object"
}
```

-----

[All Sourcify tools](https://kirha.com/providers/sourcify.md) · [< Back to tools list](https://kirha.com/tools.md)