# Mining Pool Metric Imports — CSV Header Contract Check

> Mining Pool Metric Imports — 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-15).

Validates a CSV file's header contract for mining pool metric imports, checking structure, cell constraints, and category allowlists for up to 1000 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-pool-metrics-schema?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-pool-metric-imports-csv-header-contract-check-837448ed
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_GeWx4VRrg3TOLIy__ZjvR

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-pool-metric-imports-csv-header-contract-check-837448ed -d '<json body>'
```

Example prompt: Can you validate this mining pool metrics CSV to make sure the headers and data match the expected contract — it uses comma delimiters, cells up to 500 characters, numeric values between 0 and 1000000, and only allows pool categories 'group-a' and 'group-b'?

## When to prefer this

Choose this endpoint when you need to validate the header contract and structural integrity of a CSV file containing mining pool metrics (hashrate, reward, pool ID, observation date) before importing or processing it. It is purpose-built for this domain with support for quoted cells, configurable delimiters, numeric range checks, and category allowlists — making it more appropriate than a generic CSV validator when mining pool-specific schema conformance is required.

## Known failure modes

- CSV exceeds 1000-row limit — validation rejected
- CSV string is empty or missing — request fails
- Delimiter mismatch causes incorrect column parsing
- max_cell_length set below actual cell content — false failures
- allowed_categories list is empty but data contains categories — all flagged invalid
- CSV is malformed or unquoted cells contain delimiter characters — parsing errors

## How this service works

Mining pool metric imports — Header contract check: Header contract check for Mining pool metric imports. 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

Returns a structured header contract check report indicating whether the CSV passes validation, including details on header structure conformance, any rows exceeding cell length limits, numeric values outside the specified range, disallowed category values, and a summary of row and error counts.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "observation_id,observed_on,pool_id,hashrate_ths,reported_reward_btc\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-pool-metric-imports-csv-header-contract-check-837448ed/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)
