# W3-IPFS Intent-to-Swap Transaction Converter

> W3-IPFS Intent-to-Swap Transaction Converter is a paid API for AI agents from api.w3-ipfs.xyz, paid per call via x402, $0.1/call, status down (last checked 2026-09-15).

Converts a natural language swap intent (e.g. 'swap 1 ETH for USDC') into an executable blockchain swap transaction

## Facts

- Endpoint: POST https://api.w3-ipfs.xyz/x402/intent-to-swap-tx
- Price: $0.1/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/api-w3-ipfs-xyz-3f29764e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_0YKhEuhJLvkhhv59oea4x

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 api-w3-ipfs-xyz-3f29764e -d '<json body>'
```

Example prompt: Turn this into a swap transaction I can sign: 'swap 0.5 ETH for USDC using my wallet 0xAbC123...'.

## When to prefer this

Use this endpoint when you need to bridge the gap between a user's plain-English swap request and an actual on-chain swap transaction, especially in AI agent workflows where the user describes their trade intent conversationally rather than specifying raw transaction parameters.

## Known failure modes

- Ambiguous intent with unclear token names or amounts returns a parsing error
- Unsupported token pair returns an error indicating the swap cannot be constructed
- Missing wallet address or recipient details may cause transaction generation to fail
- Malformed or nonsensical natural language input returns a bad request error
- Network or service unavailability returns a 5xx error

## How this service works

Convert natural language intent to swap transaction

## Output

Returns an executable swap transaction payload derived from the natural language swap intent, including token pair, amounts, and transaction data ready for signing and broadcasting.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/api-w3-ipfs-xyz-3f29764e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.w3-ipfs.xyz](https://www.zero.xyz/host/api.w3-ipfs.xyz/llms.txt)
