v1

latestOpenAPI 3.1.02026-07-17373221.0 KB
(Deprecated) Stateless Verification

Sends provided files for verification.

The chosenContract is the optional index of the contract to be verified and only needed when there are multiple contracts, i.e. multiple metadata.json in the provided body. For example a full hardhat-output contains metadatas of all contracts compiled.

post/verify

Request body

addressstring address required
chainstring supported-chainId required
filesobject required
creatorTxHashstring
chosenContractstring

Optional index for the contract if multiple contracts (i.e. metadata.json files) are present.

Example request

{
  "address": "0x00000000219ab540356cBB839Cbe05303d7705Fa",
  "chain": "1",
  "files": {
    "metadata.json": "{...}",
    "SimpleStorage.sol": "pragma solidity ^0.8.0; contract SimpleStorage { function get() public view returns (uint) { return 1; } }"
  },
  "creatorTxHash": "0xbc2f0848023b6a4b89dd049dadc551428a8e95153bc70d9eee6c14ec843f0a98",
  "chosenContract": "0"
}

Response

The contract has been successfully checked or sourcified