Skip to main content
GET
Get only the source-code findings for a contract
This returns only the source_code_analysis block, which is already embedded in the full contract risk report. If you already call that endpoint, you don’t need this one.

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', 'pol', 'opt', 'arb', 'hedera' and 'robinhood'. Supported blockchain networks

Available options:
eth,
base,
bsc,
pol,
opt,
arb,
hedera,
robinhood

Response

Success. One of three shapes: { analysis }, { message } (which can also carry unavailable: true) or { error }. { analysis }: the stored analysis; check analysis.status (success or error, both final, so stop polling). { message }: no stored analysis yet. verified source code queued for processing (EVM) means the analysis was queued: poll again, but cap your polling, because a result is not guaranteed (for example when the detector times out on a large contract). program queued for analysis (Solana) means the program was queued, but a result is not guaranteed to appear, so cap your polling. { unavailable: true, message: "source code temporarily unavailable" } means the block explorer could not be reached: retry later. Other messages, such as verified source code not available, are final: there is no source to analyze. { error }: the chain is not supported for code analysis, or no verified source could be read.

analysis
object
required