cURL
curl --request GET \ --url https://api.example.com/codes/{version_id}/sources \ --header 'Authorization: Bearer <token>'
{ "results": [ { "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>" } ] }
list all sources (files) for a code version. Excludes raw content
API key in Bearer token format
Successful Response
Show child attributes