Sourcify source verification API

Official Sourcify v2 lookup for a Base (or other chainId) token: match type, contract name, compiler, proxy flag, and whether an ABI is present. No Etherscan key. POST /api/v1/token-security/source-verification costs $0.002 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Base public JSON-RPC (mainnet.base.org), unauthenticated. Contract runtime bytecode and public eth_call / eth_getStorageAt reads. DEX Screener public token endpoint (api.dexscreener.com), unauthenticated. Limits: Only Base mainnet (chain id 8453) is assessed for most routes; source-verification accepts chainId. A missing signal is not evidence that a token is safe.

Official Sourcify v2 lookup for a Base (or other chainId) token: match type, contract name, compiler, proxy flag, and whether an ABI is present. No Etherscan key. POST /api/v1/token-security/source-verification costs $0.002 USDC on Base via x402. HTTP 2xx with status complete or partial and real data is charged; status failed, empty payloads, and HTTP 4xx/5xx are not charged. Sources: Base public JSON-RPC (mainnet.base.org), unauthenticated. Contract runtime bytecode and public eth_call / eth_getStorageAt reads. DEX Screener public token endpoint (api.dexscreener.com), unauthenticated. Limits: Only Base mainnet (chain id 8453) is assessed for most routes; source-verification accepts chainId. A missing signal is not evidence that a token is safe.

POST$0.002 USDC
/api/v1/token-security/source-verification

Example request

curl -i -X POST "https://www.brainiac.software/api/v1/token-security/source-verification" \
  -H 'content-type: application/json' \
  -H 'Idempotency-Key: <fresh-64-character-random-hex-key>' \
  --data-binary @- <<'JSON'
{
  "tokenAddress": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
  "chainId": 8453
}
JSON

Example response

{
  "status": "complete",
  "tokenAddress": "0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "chainId": 8453,
  "match": "exact_match",
  "contractName": "FiatTokenV2_2",
  "compiler": "0.8.24+commit.e11b9ed9",
  "proxy": true,
  "abiPresent": true,
  "sourcifyUrl": "https://repo.sourcify.dev/contracts/full_match/8453/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913/",
  "source": "Sourcify",
  "sourceUrl": "https://sourcify.dev/server/v2/contract/8453/0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",
  "missing_items": []
}

An unpaid probe returns HTTP 402 with x402 payment requirements. After paying the exact USDC amount on Base, retry the identical request with a payment-signature header.

Errors: HTTP 4xx/5xx are not charged. HTTP 2xx with status complete or partial and real data is charged; failed or empty results are not charged. Invalid cursor returns HTTP 400 (uncharged).

Limits: Only Base mainnet (chain id 8453) is assessed for most routes; source-verification accepts chainId. A missing signal is not evidence that a token is safe. Bytecode selector matches can be coincidental and do not prove a function is callable.

FAQ

  • Do I need an API key? No. Pay the listed USDC amount with x402.
  • What network? Base (eip155:8453), USDC.
  • Is this an official determination? No. Results are for human review against the cited sources.

Related APIs

Base Token Security APIGroup docsHow it works