# Swap

The Swap API allows you to exchange supported cryptocurrencies instantly using Aurex ZK-powered routing. Swap operations are non-custodial, require no KYC, and are optimized for speed and privacy.

***

### Overview

The Swap system enables:

* Instant crypto-to-crypto exchanges
* Privacy-enhanced routing
* Zero-knowledge proof based execution
* Non-custodial transfers
* Direct delivery to recipient wallet

Supported swap pairs depend on system availability.

***

### Key Features

**Non-custodial**

Funds are never held by Aurex.

**No KYC Required**

Swaps can be executed without identity verification.

**Instant Execution**

Transactions are processed immediately after confirmation.

**ZK Routing**

Advanced routing logic enhances privacy and execution efficiency.

***

### Privacy Modes

Swap operations support configurable privacy levels.

#### Fast Mode

* Optimized for execution speed
* Lower routing complexity

#### Strong Mode

* Enhanced privacy
* Moderate execution speed

#### Maximum Privacy

* Maximum routing obfuscation
* Slower execution

> Important: Higher privacy levels may increase processing time.

***

### Swap Flow

1. Select source currency
2. Select target currency
3. Enter amount
4. Provide recipient wallet address
5. Execute swap
6. Funds are delivered directly to recipient

***

### Swap Status Lifecycle

A swap can have the following statuses:

* initiated
* routing
* processing
* completed
* failed

> Note: Status transitions depend on blockchain confirmations and routing complexity.

***

### Errors

Possible swap errors include:

* Invalid recipient address
* Unsupported currency pair
* Insufficient liquidity
* Network congestion
* Internal routing failure<br>

All error responses follow the standard API error format:

```json
{
  "success": false,
  "error": "Error description"
}
```

***

### Security Considerations

* Always validate recipient wallet addresses before execution
* Swaps are irreversible once executed
* Funds cannot be recovered after successful completion
