T402 API Reference - v2.8.0
    Preparing search index...

    Function getReputationSummary

    • Get a reputation summary for an agent from trusted reviewers.

      Queries the on-chain Reputation Registry and normalizes the result to a 0-100 score. Requires explicit trustedReviewers for Sybil resistance.

      Parameters

      • client: ERC8004ReadClient

        Read-only client for contract calls

      • reputationRegistry: `0x${string}`

        Reputation Registry contract address

      • agentId: bigint

        Agent's on-chain ID

      • trustedReviewers: `0x${string}`[]

        Addresses whose feedback is trusted

      • tag1: string = ""

        Optional primary tag filter

      • tag2: string = ""

        Optional secondary tag filter

      Returns Promise<ReputationSummary>

      Reputation summary with normalized 0-100 score