Skip to main content
POST
get_contract_source_code

Reading the result

The response example uses made-up values and shows selected fields. Fields vary by network and available data.
  • The EVM example is an array of contract records. SourceCode contains verified source text, while ABI is itself a JSON-encoded string.
  • ContractName, CompilerVersion, and OptimizationUsed describe compilation. Proxy and Implementation describe proxy details when available.
  • An empty SourceCode means verified source was not returned. Fields and flag types can vary; verification alone does not establish contract safety.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
contract_address
string
required

Exact contract address on the selected network.

network
string
default:ethereum

Network to query, for example ethereum. See Supported Networks for coverage.

Response

Verified contract source code + ABI (EVM chains). Note: response can be large. Fields vary by network and available data. Check for status: no_data, status: error, or an error field even when HTTP status is 200. See Errors & status.

The response is of type object.