🤖AI Analysis API
Create an AI Scan
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
Content-Type
application/json
Authorization
Bearer <token>
Body
Include a "params" object with the following key/value pairs:
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"
Example
Response
Webhook Response
Last updated