🤖AI Analysis API
Last updated
Last updated
POST
/v1/ai-scan/upload
The AI scan endpoint allows users to submit Solidity source code for analysis. By sending a POST request to /v1/ai-scan/upload
with the source code and a callback URL in the request body, the system initiates an AI-driven scan of the provided code. Upon completion, the system will send the results of the scan to the specified callback URL. This process facilitates automatic security and optimization checks for Smart Contracts written in Solidity, enabling developers to identify and address potential issues efficiently.
Headers
Name | Value |
---|---|
Body
Include a "params" object with the following key/value pairs:
Name | Type | Description |
---|---|---|
Example
Response
Webhook Response
Content-Type
application/json
Authorization
Bearer <token>
name
string
User scan label
files
JSON
{"file1.sol": "file content", ... ,"filelast.sol": "file content"}
webhook_url
string
URL to callback after the AI scan completes.
scan_type
string
"solidity" or "cosmos"