azeth_get_weighted_reputation
Retrieve a USD-weighted reputation score for an on-chain agent, aggregated from raters proportional to their USD payments, to evaluate trustworthiness before interactions.
Instructions
Get USD-weighted reputation for an agent from the on-chain ReputationModule.
Use this when: You want to check the reputation of an agent or service before interacting. Returns a weighted average where each rater's influence is proportional to their USD payment to the agent.
Returns: Weighted reputation with weightedValue (int256), totalWeight, and opinionCount.
Note: This is a read-only on-chain query. No private key or gas is required. Leave raters empty to aggregate across all raters who have submitted opinions.
Example: { "agentId": "1024" } or { "agentId": "1024", "raters": ["0x1234...abcd"] }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Target chain. Defaults to AZETH_CHAIN env var or "baseSepolia". Accepts "base", "baseSepolia", "ethereumSepolia", "ethereum" (and aliases like "base-sepolia", "eth-sepolia", "sepolia", "eth", "mainnet"). | |
| agentId | Yes | Target agent's ERC-8004 token ID (numeric string). | |
| raters | No | Specific rater addresses to include (optional). Empty = all raters. |