Skip to main content
GET
/
contracts
/
{contractAddress}
/
code-analysis
Get source code analysis for a contract
curl --request GET \
  --url https://api.webacy.com/contracts/{contractAddress}/code-analysis \
  --header 'x-api-key: <api-key>'
{
  "analysis": {
    "contract_address": "0x1234567890123456789012345678901234567890",
    "chain": "eth",
    "analysis_date": "2023-11-15T10:30:00Z",
    "status": "completed",
    "findings": [
      {
        "risk": "reentrancy",
        "details": {},
        "function_signatures": [
          {
            "function_name": "withdraw",
            "function_signature": "function withdraw(uint256 amount) external"
          }
        ],
        "statements": [
          {
            "statement_type": "call",
            "statement_text": "msg.sender.call{value: amount}(\"\")"
          }
        ]
      }
    ],
    "urls": [
      {
        "url": "https://example.com/analysis-report"
      }
    ]
  }
}

Authorizations

x-api-key
string
header
required

Path Parameters

contractAddress
string
required

Contract address to analyze

Query Parameters

chain
enum<string>
required

Selected chain. This includes 'eth', 'base', 'bsc', 'polygon', 'optimism' and 'arb' Supported blockchain networks

Available options:
eth,
base,
bsc,
pol,
opt,
arb
refreshCache
boolean

Re-analyze contract address and retrieve fresh data

Response

Success - Returns analysis results, an informational message, or an error message for unsupported chains

analysis
object
required