# AI Audits

Welcome to [**Audit.Paal**](https://audit.paal.ai), the platform for automated smart contract security analysis. Audit.Paal supports multiple blockchain networks, providing security scores and insights for Ethereum, BSC, Base, Polygon, and Solana contracts. Below is a detailed guide for users and API integrations.

<figure><img src="https://3811185256-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F5bkDvV8shY8wIeGZMnwo%2Fuploads%2FK2zrBdgdfdlJvbFYaRus%2FScreenshot%202024-12-07%20at%201.30.38%20PM.png?alt=media&#x26;token=a700dfd6-f4be-44be-af82-51c094e09b12" alt=""><figcaption></figcaption></figure>

***

### **Platform Features**

#### **Dashboard**

* **Purpose**: Provides a central overview of token audits.
* **Features**:
  * Select networks: Ethereum, BSC, Base, and Polygon.
  * Input fields for token name and contract address to generate audits.
  * Recent audit history displayed below for quick access.

***

#### **Audit History**

* **Purpose**: View completed and pending audits.
* **Features**:
  * **Completed Audits**:
    * Displays token name, network, and security score.
    * Option to download audit reports or view detailed results.
  * **Pending Audits**:
    * Displays tokens with audits in progress.
    * Allows users to track status updates.

***

#### **Solana Audits**

* **Purpose**: Generate audits specifically for Solana contracts.
* **Features**:
  * Input token address to initiate an audit.
  * Results provide comprehensive analysis of Solana contracts.

***

#### **Profile and Credits**

* **Purpose**: Manage user profile and available credits.
* **Features**:
  * **Buy Credits**: Purchase credits for generating audits.
  * Display of available credit balance for easy tracking.

***

### **API Documentation**

For developers, Audit.Paal provides an API for seamless integration into workflows. Below are the key API endpoints:

#### **Getting Started**

* **Purpose**: Submit a smart contract for automated security analysis.
* **Endpoint**:

  ```arduino
  arduinoCopy codePOST http://44.216.8.86:3001/api/generate-audit
  ```
* **Payload Example**:

  ```json
  jsonCopy code{
    "token_name": "<Token Name>",
    "token_address": "0xdA00000000000000000000000000000000000",
    "chain_of_support": "ethereum",
    "api_key": "845902c1-1234-5678-9011-db31d872asda"
  }
  ```

#### **Audit Status**

* **Purpose**: Check the status of a previously requested audit.
* **Endpoint**:

  ```arduino
  arduinoCopy codePOST http://44.216.8.86:3001/api/audit-status
  ```
* **Payload Example**:

  ```json
  jsonCopy code{
    "token_address": "0xdA00000000000000000000000000000000000",
    "api_key": "845902c1-1234-5678-9011-db31d872asda"
  }
  ```

#### **Solana Audits**

* **Purpose**: Generate audits for Solana smart contracts.
* **Endpoint**:

  ```arduino
  arduinoCopy codePOST http://44.216.8.86:3001/api/solana-audit
  ```
* **Payload Example**:

  ```json
  jsonCopy code{
    "token_address": "0xdA00000000000000000000000000000000000",
    "api_key": "845902c1-1234-5678-9011-db31d872asda"
  }
  ```

***

### **How to Use Audit.Paal**

1. **Dashboard**:
   * Select the desired network (Ethereum, BSC, Base, Polygon).
   * Enter the token name and contract address.
   * Click "Check" to initiate an audit.
2. **Audit History**:
   * Navigate to the **Audit** section to view completed and pending audits.
   * Download or review detailed security scores and reports.
3. **Solana Audits**:
   * Use the **Solana Audits** tab to input the token address and generate a security analysis.
4. **Manage Credits**:
   * View your credit balance on the sidebar and purchase more credits as needed.

***

### **Key Benefits**

* **Multi-Network Support**: Analyze contracts across Ethereum, BSC, Base, Polygon, and Solana.
* **Comprehensive Reports**: Access detailed security scores and potential vulnerabilities.
* **Developer-Friendly APIs**: Seamless integration for automated auditing.

***

### **Learn More**

For detailed API documentation, visit:\
[**Audit API Docs**](https://audit.paal.ai/api-docs)

Start securing your smart contracts today with Audit.Paal! Let me know if you'd like to add more details or refinements.
