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

    Function buildFeedbackFile

    • Build an off-chain feedback file with optional proofOfPayment.

      Creates a structured feedback file object ready for JSON serialization and hosting at a feedbackURI. Used by the afterSettle hook to link on-chain feedback records to off-chain payment proof.

      Parameters

      • agentId: number

        Agent's numeric ID

      • agentRegistry: `${string}:${string}:${string}`

        Registry identifier

      • clientAddress: string

        Address of the feedback submitter

      • value: number

        Feedback value (e.g. 100 for positive)

      • valueDecimals: number

        Decimal precision for value

      • tag1: string

        Primary classification tag

      • tag2: string

        Secondary classification tag

      • OptionalproofOfPayment: ProofOfPayment

        Optional payment proof from settlement

      Returns FeedbackFile

      Feedback file object