# Mining Electricity Charge Weighted Mean

> Mining Electricity Charge Weighted Mean 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).

Calculates a weighted mean of mining electricity charges across up to 200 energy/rate data points using supplied weights

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-mining-energy-bill-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-electricity-charge-weighted-mean-4a984b36
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_O5c409ZPiaOxec8nSorrn

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-electricity-charge-weighted-mean-4a984b36 -d '<json body>'
```

Example prompt: Can you calculate the weighted mean mining electricity charge for these four periods: 720 kWh at $0.05/kWh, 792 kWh at $0.055/kWh, 720 kWh at $0.05/kWh, and 792 kWh at $0.055/kWh, with weights of 1, 2, 1, 2 respectively?

## When to prefer this

Choose this endpoint when you need a weighted mean specifically for mining electricity charges across multiple energy consumption and rate observations, and you want a disclosed formula with bounded output. Prefer this over simple averaging when some time periods, rigs, or sites should contribute more to the mean than others. Ideal for mining operators who track electricity costs across heterogeneous periods or locations and need a single representative figure.

## Known failure modes

- Fewer than 2 rows or weights provided — minimum 2 items required
- More than 200 rows submitted — exceeds maxItems limit
- energy_kwh or usd_per_kwh set to zero or negative — exclusiveMinimum: 0 enforced
- Mismatch between number of rows and weights arrays
- Weight values exceeding maximum of 1,000,000,000,000 rejected
- Payment of 0.01 USDC not completed — x402 payment required before response

## How this service works

Mining electricity charge — Weighted result mean: Weighted result mean for Mining electricity charge. 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 of mining electricity charges, expressed as a single weighted average value calculated from the supplied energy consumption (kWh) and electricity rate (USD/kWh) row pairs and their corresponding nonnegative weights. The formula and units used are disclosed in the response. No live prices or guaranteed returns are included.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "rows": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "energy_kwh",
     "usd_per_kwh"
    ],
    "properties": {
     "energy_kwh": {
      "type": "number",
      "default": 720,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     },
     "usd_per_kwh": {
      "type": "number",
      "default": 0.05,
      "maximum": 10000000000000000,
      "minimum": 0,
      "exclusiveMinimum": 0
     }
    },
    "additionalProperties": false
   },
   "default": [
    {
     "energy_kwh": 720,
     "usd_per_kwh": 0.05
    },
    {
     "energy_kwh": 792.0000000000001,
     "usd_per_kwh": 0.05500000000000001
    },
    {
     "energy_kwh": 720,
     "usd_per_kwh": 0.05
    },
    {
     "energy_kwh": 792.0000000000001,
     "usd_per_kwh": 0.05500000000000001
    }
   ],
   "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-electricity-charge-weighted-mean-4a984b36/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)
