# Sourcify — Search signatures

Search Sourcify signatures via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Sourcify, pass parameters such as query, and retrieve structured data including response success flag, candidate function signature text, candidate event signature text, and has verified contract for abi research, and decoder development, ready for production pipelines and AI agent automation.

Documentation: https://openany.si/sourcify/sourcify-search-signatures/cb71e644-bf8c-4ae8-84aa-ea2030034f65/
API ID: cb71e644-bf8c-4ae8-84aa-ea2030034f65
Provider: sourcify
Contract revision: 4
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/sourcify/signature-database/v1/search
Page update time: 2026-12-03T02:49:10.597Z
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:10.080Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "fixed",
  "priceMicroUsd": "0",
  "rounding": null,
  "unit": "call",
  "unitQuantity": null
}
```

## Usage and limits
## Sourcify Signature Search API

Set the required query parameter to signature text or a pattern using \* and ?. The response organizes candidate names under function and event hash maps. Search is case-sensitive, and the optional filter flag controls junk-result filtering.

## What You Can Build

- **ABI research**: Find candidate declarations matching a function-name pattern.
- **Decoder development**: Compare returned text signatures with their function and event hashes.

## Documented Response Fields

| Field | Meaning |
| --- | --- |
| `ok` | Response success flag |
| `result.function.<selector>[].name` | Candidate function signature text |
| `result.event.<hash>[].name` | Candidate event signature text |
| `result.function.<selector>[].hasVerifiedContract` | Verified-contract association for a candidate |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Sourcify — Search signatures 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": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "query": {
          "type": "string",
          "description": "The name of the function to search for. Case sensitive. Use '*' and '?' for wildcards."
        },
        "filter": {
          "type": "boolean",
          "description": "Whether or not to filter out junk results"
        }
      },
      "required": [
        "query"
      ]
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "ok": {
      "type": "boolean"
    },
    "result": {
      "type": "object",
      "properties": {
        "event": {
          "type": "object",
          "properties": {
            "0xa9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "filtered": {
                    "type": "boolean"
                  },
                  "hasVerifiedContract": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "function": {
          "type": "object",
          "properties": {
            "0xa9059cbb": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "filtered": {
                    "type": "boolean"
                  },
                  "hasVerifiedContract": {
                    "type": "boolean"
                  },
                  "name": {
                    "type": "string"
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}
```

## Request example
Scenario: Documentation example
```bash
curl \
  'https://api.openany.si/v1/agent-apis/sourcify/signature-database/v1/search?query=transfer%28address%2Cuint256%29' \
  -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
{
  "ok": true,
  "result": {
    "event": {
      "0xa9059cbb2ab09eb219583f4a59a5d0623ade346d962bcd4e46b11da047c9049b": [
        {
          "filtered": false,
          "hasVerifiedContract": true,
          "name": "transfer(address,uint256)"
        }
      ]
    },
    "function": {
      "0xa9059cbb": [
        {
          "filtered": false,
          "hasVerifiedContract": true,
          "name": "transfer(address,uint256)"
        }
      ]
    }
  }
}
```

## 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
### Can I use wildcards?
Yes. query supports * and ? and is case-sensitive. Preserve the intended capitalization and encode the query string correctly.

### Should I send a selector instead of signature text?
Use this endpoint to search text or patterns. Use Signature Lookup when you already have a function or event hash.

### Why are candidates grouped under different maps?
Function selectors and event hashes use separate result maps and hash lengths; keep those namespaces distinct.

### Does this endpoint paginate?
The current selected contract exposes query and filter only. Do not add unsupported page or cursor parameters.

### 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-search-signatures/cb71e644-bf8c-4ae8-84aa-ea2030034f65/

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