# Token Swap Imports CSV Whitespace Audit

> Token Swap Imports CSV Whitespace Audit 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-12).

Validates a CSV file of token swap records for whitespace anomalies, checking up to 1000 rows with support for quoted cells and configurable delimiters.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-token-swaps-whitespace?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/token-swap-imports-csv-whitespace-audit-d33e023a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_J8ZyjDFE_3N_3TbvJNUyw

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 token-swap-imports-csv-whitespace-audit-d33e023a -d '<json body>'
```

Example prompt: Can you run a whitespace audit on this token swap CSV — it has columns swap_id, executed_on, pool_address, input_tokens, output_tokens, uses comma delimiters, and I need to check up to 1000 rows with a max cell length of 500 and only allow pool categories group-a and group-b?

## When to prefer this

Use this endpoint when you need a focused, low-cost whitespace audit specifically for token swap CSV imports — particularly when your pipeline needs to validate swap_id, pool_address, and token quantity columns for whitespace hygiene before ingestion. Prefer this over general CSV validators when your data is structured around DeFi swap records with categorical pool identifiers.

## Known failure modes

- CSV exceeds 100,000 character limit — request rejected
- CSV is empty or missing — validation error returned
- Delimiter not one of comma, semicolon, or tab — schema validation failure
- Cell length exceeds max_cell_length — flagged in report or rejected
- Allowed categories list exceeds 100 entries — schema rejection
- Malformed CSV that cannot be parsed — parsing error returned

## How this service works

Token swap imports — Whitespace audit: Whitespace audit for Token swap 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 whitespace audit report.

## Output

Returns a whitespace audit report for the submitted token swap CSV, identifying cells or rows with whitespace anomalies such as leading/trailing spaces, unexpected whitespace characters, or formatting violations, covering up to 1000 rows with quoted-cell support.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "csv": {
   "type": "string",
   "default": "swap_id,executed_on,pool_address,input_tokens,output_tokens\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/token-swap-imports-csv-whitespace-audit-d33e023a/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)
