v1

latestOpenAPI 3.1.02026-07-17373221.0 KB
(Deprecated) Repository

Get all files of a contract (full match)

Returns all files for the desired contract with the address and chain. Searches only for full matches.

get/files/{chain}/{address}

Path parameters

chainstring sourcify-chainId required
addressstring address required

Response

Contract is available in the repository

namestring
pathstring
contentstring

Example response

[
  {
    "name": "metadata.json",
    "path": "/home/data/repository/contracts/full_match/3/0x0000A906D248Cc99FB8CB296C8Ad8C6Df05431c9/metadata.json"
  }
]