Contract Address
Testnet:CANK4E7GOFZT4D3U57RNT7QLQTNFGY7QNL6TQTWWKYBNHX7J6U54HO7E
Key Functions
Returns the total aggregated reputation score for a recipient address, capped at
10,000. This is a convenience wrapper around get_score_breakdown that returns only the total field.Parameters:attestation_contract— Address of the attestation contract to read fromrecipient— Worker’s Stellar address to score
Returns the full
ScoreBreakdown struct with the total score and a per-category breakdown. Use this when you want to display or compare scores across different types of work.Parameters:attestation_contract— Address of the attestation contract to read fromrecipient— Worker’s Stellar address to score
Returns
true if the recipient’s total reputation score is greater than or equal to minimum_score. Useful for on-chain access control or eligibility checks.Parameters:attestation_contract— Address of the attestation contract to read fromrecipient— Worker’s Stellar address to checkminimum_score— Minimum score threshold (negative values always returnfalse)
ScoreBreakdown Fields
Aggregate score across all attestation categories, capped at
10,000. This is the primary reputation score you would display to end users.Score contribution from all
Freelance-category attestations.Score contribution from all
Salary-category attestations.Score contribution from all
Bounty-category attestations.Score contribution from all
Grant-category attestations.Score contribution from all
AgentTask-category attestations.Score contribution from all
Subscription-category attestations.Scoring Formula
Each attestation contributes a base score of 10 points, plus a payment bonus of up to 100 points proportional to the amount paid. That raw score is then multiplied by three independent weighting factors before being added to the breakdown. Per-attestation score:Recency Weighting
Attestations from recent ledgers are worth more than older ones, incentivising sustained activity.Category Weighting
Client Confirmation Weighting
Score Cap
Thetotal field in ScoreBreakdown is capped at 10,000 regardless of how many attestations a worker accumulates. Individual category sub-scores are not capped and can exceed 10,000. The reputation contract processes up to the 100 most recent attestation IDs per call.