Endpoint: POST /v1/audits
POST /v1/audits
Purpose: Initiates a new audit for the specified project or contract.
Parameters:
project_name (string): The name of your project.
project_name
contracts (file): The smart contract files to audit, provided as file uploads.
contracts
Example Request:
http POST https://api.auditx.com/v1/audits Authorization: Bearer YOUR_API_KEY Content-Type: multipart/form-data
Form Data:
project_name: "MyDeFiProject"
contracts: [File Uploads]
Retrieve Audit Results
Endpoint: GET /v1/audits/{audit_id}
GET /v1/audits/{audit_id}
Purpose: Fetches the results of a specific audit.
audit_id (string): The unique ID of the audit you want to retrieve.
audit_id
Endpoint: GET /v1/projects
GET /v1/projects
Purpose: Lists all projects associated with your account.
Parameters: None
Example Request
Last updated 9 months ago
http GET https://api.auditx.com/v1/audits/abc123 Authorization: Bearer YOUR_API_KEY
http GET https://api.auditx.com/v1/projects Authorization: Bearer YOUR_API_KEY