# Token Swap Imports — Declared Column Projection

> Token Swap Imports — Declared Column Projection 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 against a declared column schema contract, returning a column projection report for up to 1000 rows.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/assistant-bx-csv-token-swaps-projection?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-declared-column-projection-e7660137
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xKJRK_0BczOOQKIxLj0I6

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-declared-column-projection-e7660137 -d '<json body>'
```

Example prompt: Can you validate this token swap CSV to make sure the columns match the declared contract — it uses commas as delimiters, swap_id, executed_on, pool_address, input_tokens, and output_tokens columns, with allowed pool categories group-a and group-b, and token values between 0 and 1000000?

## When to prefer this

Use this endpoint when you need to enforce a declared CSV column contract for token swap import data specifically, and want lightweight schema validation (not enrichment or transformation) up to 1000 rows. It is ideal for pre-import quality gates in DeFi data pipelines where pool categories and numeric token value bounds need to be validated cheaply at $0.01 per call.

## Known failure modes

- CSV exceeds 1000 rows — only first 1000 processed
- CSV string exceeds 100000 character limit — request rejected
- Invalid delimiter value provided — must be comma, semicolon, or tab
- Cell content exceeds max_cell_length — flagged as violation
- allowed_categories list exceeds 100 items — request rejected
- Numeric values outside min/max bounds — validation failure reported
- Malformed CSV with unclosed quotes — parse error returned

## How this service works

Token swap imports — Declared column projection: Declared column projection 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 declared column projection report.

## Output

Returns a declared column projection report indicating whether the CSV conforms to the expected token swap schema contract, including column presence and validity for up to 1000 rows, with details on any violations found in the parsed cells.

## 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-declared-column-projection-e7660137/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)
