# Mining Contribution per Energy Unit — Weighted Mean Calculator

> Mining Contribution per Energy Unit — Weighted Mean Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-15).

Computes a weighted result mean of mining contribution (USD) per unit of energy (kWh) across multiple data rows using caller-supplied weights.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-mining-profit-per-kwh-weighted-mean?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mining-contribution-per-energy-unit-weighted-mean-calculator-2a6269bf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4UOwIM6sEBbScnX6RjKQv

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 mining-contribution-per-energy-unit-weighted-mean-calculator-2a6269bf -d '<json body>'
```

Example prompt: I have four mining rigs — rig A used 500 kWh and contributed $25, rig B used 550 kWh and contributed $27.50, rig C used 500 kWh and contributed $25, and rig D used 550 kWh and contributed $27.50. Apply weights of 1, 2, 1, 2 respectively and give me the weighted mean mining contribution per kWh.

## When to prefer this

Choose this endpoint when you need a statistically weighted aggregation of mining efficiency (USD per kWh) across multiple mining rigs or time periods, with control over how much each data point influences the result. It is ideal for scenarios where different operations have different reliability, size, or importance and you want a single composite efficiency figure. Prefer alternatives if you need live market prices, real-time hashrate data, or unweighted simple averages.

## Known failure modes

- Fewer than 2 rows provided — minItems constraint violation
- Weights array length does not match rows array length
- energy_kwh value is zero or negative — exclusiveMinimum constraint violation
- contribution_usd or energy_kwh values exceed maximum bounds
- Payment of 0.01 USDC not fulfilled — 402 Payment Required response
- More than 200 rows supplied — maxItems constraint violation

## How this service works

Mining contribution per energy unit — Weighted result mean: Weighted result mean for Mining contribution per energy unit. Supplied mining assumptions only; formula and units disclosed. No live prices, mining or guaranteed return. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one bounded weighted result mean report.

## Output

A bounded weighted mean report showing the aggregated mining contribution per kWh, calculated from the supplied rows of (contribution_usd, energy_kwh) pairs and their corresponding weights. The result is a single weighted-mean value using the caller-supplied formula and units, with no live pricing or guaranteed return figures included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "contribution_usd",
     "energy_kwh"
    ],
    "properties": {
     "energy_kwh": {
      "type": "number",
      "default": 500,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "contribution_usd": {
      "type": "number",
      "default": 25,
      "maximum": 10000000000000000,
      "minimum": -1000000000000
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "energy_kwh": 500,
     "contribution_usd": 25
    },
    {
     "energy_kwh": 550,
     "contribution_usd": 27.500000000000004
    },
    {
     "energy_kwh": 500,
     "contribution_usd": 25
    },
    {
     "energy_kwh": 550,
     "contribution_usd": 27.500000000000004
    }
   ],
   "maxItems": 200,
   "minItems": 2
  },
  "weights": {
   "type": "array",
   "items": {
    "type": "number",
    "default": 1,
    "maximum": 1000000000000,
    "minimum": 0
   },
   "default": [
    1,
    2,
    1,
    2
   ],
   "maxItems": 200,
   "minItems": 2
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mining-contribution-per-energy-unit-weighted-mean-calculator-2a6269bf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
