# Mining Share Aggregates CSV Header Contract Check

> Mining Share Aggregates CSV Header Contract Check 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-16).

Validates the header contract (column structure and data types) of a CSV file containing mining share aggregate data, supporting up to 1000 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-mining-shares-schema?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/mining-share-aggregates-csv-header-contract-check-3117dd4d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_uHCAIOPH8yLuUeG116Fny

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-share-aggregates-csv-header-contract-check-3117dd4d -d '<json body>'
```

Example prompt: Can you check if this mining shares CSV has the right header contract — it should have columns observation_id, observed_on, worker_id, accepted_shares, rejected_shares, comma-delimited, with worker groups limited to group-a and group-b, and numeric values between 0 and 1000000?

## When to prefer this

Choose this endpoint when you need a fast, inexpensive ($0.01 USDC) structural validation of a mining share aggregate CSV before ingestion or processing. It is purpose-built for the specific schema of mining share data (observation_id, observed_on, worker_id, accepted_shares, rejected_shares) and enforces configurable numeric bounds and allowed category lists. Prefer it over generic CSV validators when your domain is cryptocurrency mining pool reporting and you need a pre-configured validation preset without external enrichment.

## Known failure modes

- CSV exceeds 100,000 character limit — payload rejected
- Fewer than 1 character in CSV input — validation fails immediately
- Delimiter mismatch between declared and actual CSV format — false failures
- Cell length exceeds max_cell_length — flagged as contract violation
- Numeric values outside declared minimum/maximum bounds — reported as non-conformant
- Categorical values not in allowed_categories list — flagged as violations
- Malformed CSV with unmatched quotes — parsing error returned

## How this service works

Mining share aggregates — Header contract check: Header contract check for Mining share aggregates. Validate a declared CSV table contract, up to 1000 rows. Quoted cells supported; no external enrichment. Specialised preset in a shared 50-profile, 20-operation engine. 0.01 USDC includes one CSV header contract check report.

## Output

A CSV header contract check report indicating whether the supplied CSV's columns, data types, cell lengths, delimiter, numeric ranges, and categorical values conform to the declared contract. The report covers up to 1000 rows and returns conformance status for each constraint.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "observation_id,observed_on,worker_id,accepted_shares,rejected_shares\nrecord-a,2026-01-01,group-a,10,2\nrecord-b,2026-01-02,group-b,20,3",
   "maxLength": 100000,
   "minLength": 1
  },
  "maximum": {
   "type": "number",
   "default": 1000000000000,
   "maximum": 1000000000000,
   "minimum": -1000000000000
  },
  "minimum": {
   "type": "number",
   "default": -1000000000000,
   "maximum": 1000000000000,
   "minimum": -1000000000000
  },
  "delimiter": {
   "enum": [
    ",",
    ";",
    "\t"
   ],
   "type": "string",
   "default": ","
  },
  "max_cell_length": {
   "type": "integer",
   "default": 1000,
   "maximum": 5000,
   "minimum": 1
  },
  "allowed_categories": {
   "type": "array",
   "items": {
    "type": "string",
    "default": "",
    "maxLength": 100,
    "minLength": 1
   },
   "default": [
    "group-a",
    "group-b"
   ],
   "maxItems": 100,
   "minItems": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/mining-share-aggregates-csv-header-contract-check-3117dd4d/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)
