HTTP API

Generate token by following this Generating Private Key

Start a project scan

POST https://api.solidityscan.com/private/api-project-scan/

Name
Type
Description

Authorization*

String

Bearer <token>

Request Body

Name
Type
Description

project_url*

string

url of the project

project_branch

string

branch of the repository to scan

skip_file_paths

[string]

list of paths to skip when scanning

rescan

boolean

true if this scan has already been scanned, false if not.

Project Scan Example

curl --location 'https://api.solidityscan.com/private/api-project-scan/' \
--header 'accept: application/json, text/plain, */*' \
--header 'accept-language: en-GB,en-US;q=0.9,en;q=0.8' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-fetch-dest: empty' \
--header 'sec-fetch-mode: cors' \
--header 'sec-fetch-site: same-origin' \
--header 'sec-gpc: 1' \
--header 'Authorization: Bearer <Your Token>' \
--header 'Content-Type: application/json' \
--data '{
    "provider": "github",
    "project_name": "SolidityScan",
    "project_url": "https://github.com/Shashank-In/SmartContract",
    "project_branch": "main",
    "project_skip_files":[]
}'

Verified Contract Scans

Start a block scan

POST https://api.solidityscan.com/private/api-start-scan-block/

Name
Type
Description

Authorization*

String

Bearer <token>

Request Body

Name
Type
Description

contract_address*

string

address of the contract

contract_platform*

string

contract_chain*

strin

chain which the contract belongs to

Block Scan CURL Example

Generate Report

Generate Report

POST https://api.solidityscan.com/private/api-generate-report/

Request Headers

Name
Type
Description

Authorization*

String

Bearer <token>

Request Body

Name
Type
Description

project_id*

string

project_id to generate report for

scan_id*

string

id of the scan associated

scan_type

string

block | project (Use block scan when generating report of scanned on-chain contract and use project type when generating report of github or file upload)

Generate Report CURL Example

Pre-Signed URL Generation

GEThttps://solidityscan.com/app/private/api-get-presigned-url/

Generates a pre-signed URL for uploading a file (e.g., test.sol).

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Response

Curl Example:


Scan Retrieval

POSThttps://solidityscan.com/app/private/api-get-scan/

Fetches the scan result of a specific project or file.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

client_id

number

Id of the client

scan_id

string

Id of the scan

scan_type

string

Type of Scan

project_id

string

Id of the project

Response

Curl Example:


File Scan

POSThttps://solidityscan.com/app/private/api-file-scan/

Uploads a file and initiates its scan.

Headers

Name
Value

Content-Type

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

file_urls

array

An array containing all the URLs of the files.

project_name

string

Name of the project

project_type

string

Type of the project

Response

Last updated