Skip to main content
GET
/
codes
/
{version_id}
/
sources
/
{source_id}
get source
curl --request GET \
  --url https://api.example.com/codes/{version_id}/sources/{source_id} \
  --header 'Authorization: Bearer <token>'
{
  "id": "<string>",
  "created_at": "2023-11-07T05:31:56Z",
  "solc_version": "<string>",
  "path": "<string>",
  "is_imported": true,
  "is_known_target": true,
  "n_entry_points": 123,
  "content": "<string>"
}

Authorizations

Authorization
string
header
required

API key in Bearer token format

Path Parameters

version_id
string
required
source_id
string
required

Response

Successful Response

id
string
required
created_at
string<date-time>
required
solc_version
string
required
path
string
required
is_imported
boolean
required
is_known_target
boolean
required
n_entry_points
integer
required
content
string | null