SolidityScan Security API
  • Introduction
    • 📋Overview of SolidityScan
    • 💡Key Features
    • 💻Supported Platforms
  • Getting Started
    • ⭐Web Application
      • ⏩QuickScan
      • Scan a Online Git Repository
      • Scanning a Deployed Contract
      • 🗃️Upload and Scan Solidity Project
      • 👨‍💼Organisation
    • ⚙️APIs
      • 🔏Generating Private Key
      • 🌐SolidityScan Private API
        • WebSocket API
          • Project Scan
          • Verified Contract Scan
          • Project Quick Scan
          • Project Threat Scan
          • File Upload Scans
          • Scan Lifespan and Events
        • HTTP API
      • RustScan API
      • 🔐Vulnerability Score API V1
      • 💢ThreatScore API V1
      • ThreatScore API V2
      • SolidityScan WebSocket Events
        • Private QuickScan WS
        • 🔐Private ThreatScan WS
        • WS references
      • ⚙️Postman Collection
      • Platform Info
    • 📑SolidityScan SDK
    • Platform Parameters
      • Arbitrum
        • Arbiscan
        • Blockscout
      • Asset Chain
        • Blockscout
      • Astar
        • Blockscout
        • SubScan
      • Aurora
        • Aurora Explorer
      • Avalanche
        • Snowtrace
        • Routescan
      • Base
        • BaseScan
        • Blockscout
      • BlackFort
        • Blockscout
      • BOBA
        • Routescan
      • Binance
        • Bscscan
      • BuildBear
        • BuildBear
      • Camino
        • Blockscout
      • Celo
        • Celo Explorer
        • Blockscout
      • Chiliz
        • Routescan
      • Connext
        • Blockscout
      • Creditcoin
        • Blockscout
      • Cronos
        • Cronos Explorer
      • Darwinia
        • SubScan
      • Ethereum Classic
        • Blockscout
      • Ethereum
        • Etherscan
        • Blockscout
      • Etherlink
        • Blockscout
      • Fantom
        • Ftmscan
      • 5ireChain
        • 5ireChain
      • Flare
        • Routescan
      • Fuse
        • Fuse Explorer
        • Blockscout
      • Gnosis
        • Blockscout
      • Hemi
        • Blockscout
      • Immutable
        • Blockscout
      • IOTA
        • Blockscout
      • Japan Open Chain
        • Blockscout
      • Lightlink
        • Blockscout
      • Linea
        • LineaScan
        • Blockscout
      • Lisk
        • Blockscout
      • LUKSO
        • Blockscout
      • Metis
        • Routescan
      • Moonbeam Network
        • SubScan
      • Neon
        • Blockscout
      • Nordek
        • Nordekscan
      • Omni
        • Blockscout
      • One World Chain
        • Blockscout
      • Optimism
        • Optimism
        • Blockscout
      • Peaq Network
        • SubScan
      • Playnance
        • Blockscout
      • Polkadot
        • SubScan
      • Polygon
        • Polygonscan
        • Blockscout
      • re.al
        • Blockscout
      • Redstone
        • Blockscout
      • Reef
        • ReefScan
      • Reya
        • Blockscout
      • Rootstock
        • Blockscout
      • Shibarium
        • Blockscout
      • Shimmer
        • Blockscout
      • Soneium
        • Blockscout
      • Stability
        • Blockscout
      • Tron
        • Tronscan
      • XDC
        • BlocksScan
      • Zetachain
        • Blockscout
      • zkSync
        • Blockscout
  • Integrations
    • GitHub
    • BitBucket
    • GitLab
    • Slack
    • VS Code
    • Remix
  • Audit Reports
    • 📒QuickScan Report
    • 📢Generate and Publish Reports
  • Pricing
    • 💰SolidityScan Pricing
Powered by GitBook
On this page
  1. Getting Started
  2. APIs
  3. SolidityScan Private API
  4. WebSocket API

Project Quick Scan

Step 1. Auth Token Registration Description: The first step is to register with your auth token to generate an UUID.

{
    "action": "message",
    "payload": {
        "type": "auth_token_register",
        "body": {
            "auth_token": "{Your_Auth_Token}"
        }
    }
}
{
    "type": "auth_token_register",
    "request_uuid": "Your_UUID",
    "payload": {
        "message": "Auth token registered."
    },
    "event_timestamp": "2024-04-19 11:37:17.854547"
}

Step 2. Now send the scan message a sample message Request & Response is shared below:

{
    "action": "message",
    "payload": {
        "type": "private_project_quick_scan_initiate",
        "body": {
            "provider": "github",
            "project_url": "https://github.com/Shashank-In/SmartContract",
            "project_name": "SolidityScan",
            "project_type": "new",
            "project_branch": "main",
            "recur_scans": false,
            "project_visibility": "public",
            "skip_file_paths": []
        }
    }
}
{
    "type": "quick_scan_status",
    "request_uuid": "",
    "payload": {
        "scan_id": "7c5c28fbb8b6c1f7",
        "scan_status": "scan_done",
        "project_id": "5a2095d0a980e5009da7f8a3e60dac77",
        "scan_details": {
            "is_latest_scan": false,
            "webhook_enabled": false,
            "file_url_list": null,
            "multi_file_scan_status": "scan_done",
            "multi_file_scan_summary": {
                "issue_severity_distribution": {
                    "informational": 6,
                    "low": 9,
                    "medium": 2,
                    "high": 1,
                    "critical": 5,
                    "gas": 13
                },
                "scan_time_taken": 6,
                "score_v2": "0.50",
                "lines_analyzed_count": 44,
                "threat_score": "78.95"
            },
            "project_branch": "main",
            "project_id": "5a2095d0a980e5009da7f8a3e60dac77",
            "project_name": "SolidityScan",
            "project_url": "https://github.com/Shashank-In/SmartContract",
            "scan_id": "7c5c28fbb8b6c1f7",
            "scan_init_time": "2024-11-06T04:42:57.782390",
            "scan_status": "scan_done",
            "scan_status_err_msg": null,
            "scan_type": "project",
            "quick_scan_file_details": [
                {
                    "issue_id": "QUICK_SCAN_PRESENCE_OF_MINTING_FUNCTION",
                    "issue_name": "PRESENCE OF MINTING FUNCTION",
                    "issue_description": "<p>The contract can mint new tokens. The <code>_mint</code> functions was detected in the contracts.</br>Mint functions are used to create new tokens and transfer them to the user\u2019s/owner\u2019s wallet to whom the tokens are minted. This increases the overall circulation of the tokens.</p>",
                    "issue_status": "fail",
                    "issue_dynamic_desc": "The contract can mint new tokens.",
                    "issue_code_findings_enabled": true,
                    "findings": [
...

The JSON of the scan data sample can be found below.

PreviousVerified Contract ScanNextProject Threat Scan

Last updated 6 months ago

⚙️
🌐
16KB
response.json