> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hashdit.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Address Security v2

> Performs an in-depth security analysis of a blockchain address. The API evaluates contract behavior, privilege controls, rug pull indicators, market signals, code security practices, transparency, and threat intelligence to produce an overall risk assessment.



## OpenAPI

````yaml POST /v2/hashdit/address-security-v2
openapi: 3.1.0
info:
  title: HashDit API
  description: >-
    HashDit threat intelligence API for domain security analysis, blockchain
    address classification, address poisoning detection, address security
    assessment, transaction simulation, transaction security, token security,
    and Solana token security
  version: 2.0.0
servers:
  - url: https://service.hashdit.io
security: []
paths:
  /v2/hashdit/address-security-v2:
    post:
      summary: Address Security v2
      description: >-
        Performs an in-depth security analysis of a blockchain address. The API
        evaluates contract behavior, privilege controls, rug pull indicators,
        market signals, code security practices, transparency, and threat
        intelligence to produce an overall risk assessment.
      operationId: addressSecurityV2
      parameters:
        - name: X-API-Key
          in: header
          description: Your HashDit API key
          required: true
          schema:
            type: string
      requestBody:
        description: Blockchain address to analyze
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AddressSecurityV2Request'
            examples:
              Contract:
                summary: Contract address example
                value:
                  chainId: '56'
                  address: '0x73feaa1ee314f8c655e354234017be2193c9e24e'
              Externally Owned Address:
                summary: EOA (Externally Owned Address) example
                value:
                  chainId: '56'
                  address: '0x56306851238d7aee9fac8cdd6877e92f83d5924c'
              ERC-20:
                summary: ERC-20 token example
                value:
                  chainId: '56'
                  address: '0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82'
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AddressSecurityV2Response'
              examples:
                Contract:
                  summary: Contract address response
                  value:
                    code: '0'
                    status: ok
                    data:
                      address: bsc:0x73feaa1ee314f8c655e354234017be2193c9e24e
                      address_type: MasterChef
                      market:
                        low_activity: '0'
                        newly_deployed: '0'
                      overall_risk_level: No Obvious Risk
                      overall_score: '90'
                      privilege:
                        has_hidden_owner: '0'
                        has_trade_limitation: '0'
                        overpowered_function: '0'
                        owner_type: contract
                      rugpull:
                        code_obfuscation: '0'
                        has_backdoor: '0'
                        has_migrator: '1'
                        is_honeypot: ''
                        is_known_rugpull: ''
                        is_metamorphic: '0'
                        is_ponzi: '0'
                      scanned_time: 1764270688
                      security:
                        has_external_calls: '1'
                        has_insecure_code_practice: '1'
                        has_known_vulnerability: '0'
                        malicious_activity: '0'
                        risky_external_calls: '0'
                      status: 200
                      threat_intelligence:
                        risk_level: '0'
                        trust_level: '3'
                      transparency:
                        can_self_destruct: '0'
                        dependency_unverified: '0'
                        is_proxy: '0'
                        proxy_implementation_verified: ''
                        verified: '1'
                Externally Owned Address:
                  summary: EOA (Externally Owned Address) response
                  value:
                    code: '0'
                    status: ok
                    data:
                      address: bsc:0x56306851238d7aee9fac8cdd6877e92f83d5924c
                      address_type: EOA
                      market:
                        days_deployed: ''
                        low_activity: ''
                      overall_risk_level: No Obvious Risk
                      overall_score: '100'
                      privilege:
                        has_hidden_owner: ''
                        has_trade_limitation: ''
                        overpowered_function: ''
                        owner_type: ''
                      rugpull:
                        code_obfuscation: ''
                        has_backdoor: ''
                        has_migrator: ''
                        is_honeypot: ''
                        is_known_rugpull: ''
                        is_metamorphic: ''
                        is_ponzi: ''
                      scanned_time: 1766104456
                      security:
                        has_external_calls: ''
                        has_insecure_code_practice: ''
                        has_known_vulnerability: ''
                        malicious_activity: ''
                        risky_external_calls: ''
                      status: 200
                      threat_intelligence:
                        risk_level: '0'
                        trust_level: '0'
                      transparency:
                        can_self_destruct: ''
                        dependency_unverified: ''
                        is_proxy: ''
                        proxy_implementation_verified: ''
                        verified: ''
                ERC-20:
                  summary: ERC-20 token response
                  value:
                    code: '0'
                    status: ok
                    data:
                      address: bsc:0x0e09fabb73bd3ade0a17ecc321fd13a19e81ce82
                      address_type: ERC20
                      market:
                        days_deployed: '1913'
                        low_activity: '0'
                      overall_risk_level: No Obvious Risk
                      overall_score: '90'
                      privilege:
                        has_hidden_owner: '0'
                        has_trade_limitation: '0'
                        overpowered_function: '1'
                        owner_type: contract
                      rugpull:
                        code_obfuscation: '0'
                        has_backdoor: '0'
                        has_migrator: ''
                        is_honeypot: '0'
                        is_known_rugpull: ''
                        is_metamorphic: '0'
                        is_ponzi: '0'
                      scanned_time: 1766061486
                      security:
                        has_external_calls: '0'
                        has_insecure_code_practice: '0'
                        has_known_vulnerability: '0'
                        malicious_activity: '0'
                        risky_external_calls: '0'
                      status: 200
                      threat_intelligence:
                        risk_level: '0'
                        trust_level: '3'
                      transparency:
                        can_self_destruct: '0'
                        dependency_unverified: '0'
                        is_proxy: '0'
                        proxy_implementation_verified: ''
                        verified: '1'
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '403':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAPIKeyErrorResponse'
              examples:
                Invalid API key:
                  summary: Invalid API key error
                  value:
                    code: '403'
                    message: 'invalid apiKey: apiKey invalid'
                    apiKey: ''
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RateLimitExceededErrorResponse'
              examples:
                Rate limit exceeded:
                  summary: Rate limit exceeded error
                  value:
                    code: '429'
                    status: error
                    message: Rate limit exceeded
components:
  schemas:
    AddressSecurityV2Request:
      type: object
      required:
        - chainId
        - address
      properties:
        chainId:
          type: string
          description: >-
            The network chain ID. See [Supported
            Chains](/api-reference/endpoint/address-security-v2/supported-chains)
            for a complete list of supported networks for this endpoint.
          example: '56'
        address:
          type: string
          description: The blockchain address to analyze.
          example: '0x73feaa1ee314f8c655e354234017be2193c9e24e'
    AddressSecurityV2Response:
      type: object
      properties:
        code:
          type: string
          description: API status code. "0" indicates success.
          example: '0'
        status:
          type: string
          description: Request status.
          example: ok
        data:
          $ref: '#/components/schemas/AddressSecurityV2Data'
    ErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: '`400`'
        status:
          type: string
          description: Error status
    InvalidAPIKeyErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: '`403`'
        message:
          type: string
          description: 'invalid apiKey: apiKey invalid'
        apiKey:
          type: string
          description: API key
          example: ''
    RateLimitExceededErrorResponse:
      type: object
      properties:
        code:
          type: string
          description: '`429`'
        status:
          type: string
          description: error
        message:
          type: string
          description: Rate limit exceeded
    AddressSecurityV2Data:
      type: object
      properties:
        address:
          type: string
          description: Fully qualified address with chain prefix.
          example: bsc:0x73feaa1ee314f8c655e354234017be2193c9e24e
        address_type:
          type: string
          description: Detected contract type.
          example: MasterChef
        market:
          $ref: '#/components/schemas/MarketIndicators'
        overall_risk_level:
          type: string
          description: Human-readable risk summary.
          enum:
            - No Obvious Risk
            - Low Risk
            - Medium Risk
            - High Risk
            - Significant Risk
        overall_score:
          type: string
          description: Overall security score (0-100). Lower values indicate higher risk.
        privilege:
          $ref: '#/components/schemas/PrivilegeAnalysis'
        rugpull:
          $ref: '#/components/schemas/RugPullIndicators'
        scanned_time:
          type: number
          description: Unix timestamp of the latest scan.
          example: 1764270688
        security:
          $ref: '#/components/schemas/SecurityAnalysis'
        status:
          type: number
          description: HTTP-style status code.
          example: 200
        threat_intelligence:
          $ref: '#/components/schemas/ThreatIntelligence'
        transparency:
          $ref: '#/components/schemas/Transparency'
    MarketIndicators:
      type: object
      properties:
        days_deployed:
          type: string
          description: Number of days since deployment.
        low_activity:
          type: string
          description: Indicates whether the address shows low on-chain activity.
          enum:
            - '0'
            - '1'
        newly_deployed:
          type: string
          description: Indicates whether the contract was recently deployed.
          enum:
            - '0'
            - '1'
    PrivilegeAnalysis:
      type: object
      properties:
        has_hidden_owner:
          type: string
          description: Whether ownership is obscured.
          enum:
            - '0'
            - '1'
        has_trade_limitation:
          type: string
          description: Indicates trade restrictions.
          enum:
            - '0'
            - '1'
        overpowered_function:
          type: string
          description: Presence of privileged or dangerous functions.
          enum:
            - '0'
            - '1'
        owner_type:
          type: string
          description: Owner type.
          enum:
            - contract
            - EOA
    RugPullIndicators:
      type: object
      properties:
        code_obfuscation:
          type: string
          description: Whether contract code is obfuscated.
          enum:
            - '0'
            - '1'
        has_backdoor:
          type: string
          description: Indicates hidden backdoor logic.
          enum:
            - '0'
            - '1'
        has_migrator:
          type: string
          description: Presence of migrator functionality.
          enum:
            - '0'
            - '1'
        is_honeypot:
          type: string
          description: Whether the contract behaves as a honeypot.
          enum:
            - '0'
            - '1'
        is_known_rugpull:
          type: string
          description: Known rug pull classification.
          enum:
            - '0'
            - '1'
        is_metamorphic:
          type: string
          description: Indicates metamorphic contract behavior.
          enum:
            - '0'
            - '1'
        is_ponzi:
          type: string
          description: Ponzi scheme indicators.
          enum:
            - '0'
            - '1'
    SecurityAnalysis:
      type: object
      properties:
        has_external_calls:
          type: string
          description: Contract performs external calls.
          enum:
            - '0'
            - '1'
        has_insecure_code_practice:
          type: string
          description: Indicates insecure coding patterns.
          enum:
            - '0'
            - '1'
        has_known_vulnerability:
          type: string
          description: Known vulnerabilities detected.
          enum:
            - '0'
            - '1'
        malicious_activity:
          type: string
          description: Evidence of malicious behavior.
          enum:
            - '0'
            - '1'
        risky_external_calls:
          type: string
          description: Risky external call patterns detected.
          enum:
            - '0'
            - '1'
    ThreatIntelligence:
      type: object
      properties:
        risk_level:
          type: string
          description: Threat intelligence risk score. 3 is the highest risk level.
          enum:
            - '0'
            - '1'
            - '2'
            - '3'
        trust_level:
          type: string
          description: Trust confidence level. 3 is the highest trust level.
          enum:
            - '0'
            - '1'
            - '2'
            - '3'
    Transparency:
      type: object
      properties:
        can_self_destruct:
          type: string
          description: Contract can self-destruct.
          enum:
            - '0'
            - '1'
        dependency_unverified:
          type: string
          description: Dependencies are not verified.
          enum:
            - '0'
            - '1'
        is_proxy:
          type: string
          description: Indicates proxy usage.
          enum:
            - '0'
            - '1'
        proxy_implementation_verified:
          type: string
          description: Proxy implementation verification status.
          enum:
            - '0'
            - '1'
        verified:
          type: string
          description: Contract verification status.
          enum:
            - '0'
            - '1'

````