Verify Contracts

Verify contract via similarity search

Starts a verification job that searches the Sourcify database for contracts whose runtime bytecode is similar to the contract deployed at the given address. The job will attempt to verify against each candidate until a match is found or the candidate list is exhausted.

post/v2/verify/similarity/{chainId}/{address}

Path parameters

chainId31318 | 42431 | 4217 required
addressstring required

Request body

creationTransactionHashstring

The hash of the transaction that created this contract. Optional.

Example request

{
  "creationTransactionHash": "0xb6ee9d528b336942dd70d3b41e2811be10a473776352009fd73f85604f5ed206"
}

Response

Successfully submitted the verification. The server started to process the verification.

You can follow the verification status via the returned verificationId at GET /v2/verify/{verificationId}

verificationIdstring uuid required

Changes

Changed in 2 of the 5 revisions of this API.847

  • eef63cd83966216See the full diff
    • the path request parameter chainId was restricted to a list of enum values

      request-parameter-became-enum

    • for the path request parameter chainId, the type changed from string to integer

      request-parameter-type-changed

    • changed the pattern of the path request parameter address from (\b0x[a-fA-F0-9]{40}\b) to ^0x[a-fA-F0-9]{40}$

      request-parameter-pattern-changed

    • added the new enum value 31318.00 to the path request parameter chainId

      request-parameter-enum-value-added

    • added the new enum value 4217.00 to the path request parameter chainId

      request-parameter-enum-value-added

    • added the new enum value 42431.00 to the path request parameter chainId

      request-parameter-enum-value-added

    • for the path request parameter address, the minLength was decreased from 42 to 0

      request-parameter-min-length-decreased

    • for the path request parameter chainId, the minLength was decreased from 1 to 0

      request-parameter-min-length-decreased

    • removed the pattern ^\d+$ from the path request parameter chainId

      request-parameter-pattern-removed

  • f02ddb386819631See the full diff
    • removed the enum value 31318.00 from the path request parameter chainId

      request-parameter-enum-value-removed

    • removed the enum value 4217.00 from the path request parameter chainId

      request-parameter-enum-value-removed

    • removed the enum value 42431.00 from the path request parameter chainId

      request-parameter-enum-value-removed

    • for the path request parameter address, the minLength was increased from 0 to 42

      request-parameter-min-length-increased

    • for the path request parameter chainId, the minLength was increased from 0 to 1

      request-parameter-min-length-increased

    • added the pattern ^\d+$ to the path request parameter chainId

      request-parameter-pattern-added

    • for the path request parameter address, the maxLength was set to 42

      request-parameter-max-length-set

    • for the path request parameter chainId, the maxLength was set to 20

      request-parameter-max-length-set

    • changed the pattern of the path request parameter address from ^0x[a-fA-F0-9]{40}$ to (\b0x[a-fA-F0-9]{40}\b)

      request-parameter-pattern-changed

    • for the path request parameter chainId, the type was generalized from integer to string

      request-parameter-type-generalized

    This revision also has 3 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog