# BRAINIAC Staking Reward Fairness Analyzer

> BRAINIAC Staking Reward Fairness Analyzer is a paid API for AI agents from www.brainiac.software, paid per call via x402, $0.04/call, status unknown (last checked 2026-11-13).

Analyzes the fairness of a staking reward allocation across multiple participants, returning a fairness score and rounding error percentage.

## Facts

- Endpoint: POST https://www.brainiac.software/api/v1/staking-operations/reward-fairness?utm_source=zero.xyz
- Price: $0.04/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/brainiac-staking-reward-fairness-analyzer-c466eb38
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_JTBf1hjfYXE2Bb1NatxGe

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability brainiac-staking-reward-fairness-analyzer-c466eb38 -d '<json body>'
```

Example prompt: Check whether this staking reward distribution was fair — total reward is 1000000 units, split across 3 participants: Alice with weight 50 got 500000, Bob with weight 30 got 300000, and Carol with weight 20 got 200000. Give me the fairness score and rounding error.

## When to prefer this

Use this endpoint when you need to programmatically verify that an integer-based staking reward distribution is proportionally fair relative to participant weights — especially when rounding errors in integer arithmetic could cause inequitable allocations. It is well-suited for DeFi protocols, staking contract audits, and compliance checks where on-chain reward fairness must be quantified. Prefer it over manual calculation when participants number in the dozens or when you need a normalized fairness score for reporting.

## Known failure modes

- Missing or zero reward amount results in validation error
- Shares array with zero or negative weights rejected due to exclusiveMinimum constraint
- Sum of allocated amounts exceeding total reward may cause unexpected scoring
- More than 200 participants in shares array returns a schema validation error
- Non-integer weight or allocated values cause type errors
- Empty shares array rejected by minItems:1 constraint

## How this service works

Pay-per-call APIs for AI agents: OFAC sanctions screening, compliance checks, token security, and Base chain data via x402. No account. Fixed USDC price. MCP-ready.

## Output

Returns a JSON object with two fields: `allocation_fairness_score` (integer 0–100 indicating how equitably the reward was distributed relative to weights) and `rounding_error_percentage` (integer percentage representing how much of the total reward was lost or misallocated due to integer rounding).

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "reward": {
   "type": "integer",
   "maximum": 9007199254740991,
   "exclusiveMinimum": 0
  },
  "shares": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "id",
     "weight",
     "allocated"
    ],
    "properties": {
     "id": {
      "type": "string",
      "maxLength": 80,
      "minLength": 1
     },
     "weight": {
      "type": "integer",
      "maximum": 9007199254740991,
      "exclusiveMinimum": 0
     },
     "allocated": {
      "type": "integer",
      "maximum": 9007199254740991,
      "minimum": 0
     }
    },
    "additionalProperties": false
   },
   "maxItems": 200,
   "minItems": 1
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "allocation_fairness_score": 87,
  "rounding_error_percentage": 13
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/brainiac-staking-reward-fairness-analyzer-c466eb38/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from www.brainiac.software](https://www.zero.xyz/host/www.brainiac.software/llms.txt)
