v1

latestOpenAPI 3.1.02026-07-24130315342.2 KB
Swap Endpoints

Execute a token swap

Get executable transactions for token-to-token swaps. Supports same-chain and cross-chain swaps with multiple from/to assets.

post/api/v2/swap/execute

Request body

addressstring required

Wallet address executing the swap

recipientstring

Recipient address (defaults to sender address)

slippage_tolerancenumber double

Slippage tolerance as a decimal (0.0 to 0.5, default: 0.01)

Example request

{
  "from_assets": [
    {
      "chain": "ethereum",
      "contract": "0x0000000000000000000000000000000000000000"
    }
  ],
  "to_assets": [
    {
      "chain": "ethereum",
      "contract": "0x0000000000000000000000000000000000000000"
    }
  ],
  "address": "0x1234567890abcdef1234567890abcdef12345678",
  "slippage_tolerance": 0.01
}

Response

Swap execution data retrieved successfully