πŸ’»API

1. GET - /api/audit-contract

Description: Retrieves audit results for a specific token contract on a supported blockchain.

  • Query Parameters:

    • chain: SupportedChain (target blockchain)

    • address: string (address of the contract to audit)

    • variant: PipelineVariant (optional β€” prompt strategy, default: production)

    • fast: boolean (optional β€” if true, returns a lightweight safe/unsafe classification instead of a full audit)

  • Response:

    • Full mode (default): Returns an Audit object with details on the contract, including vulnerabilities.

    • Fast mode (fast=true): Returns { isSafe: boolean, description: string } for quick classification.

    • Returns an error message if the audit fails.

Last updated