Skip to main content

Get Started

Welcome to the xDelta documentation. xDelta is a powerful DEX aggregator for the TON blockchain that provides optimal trade routing across multiple decentralized exchanges.

What is xDelta?

xDelta is a comprehensive trading infrastructure that connects to multiple DEX and staking platforms in the TON ecosystem:

  • StonFi - The leading DEX on TON
  • DeDust - The leading DEX on TON
  • Tonco - First CLMM DEX on TON
  • TONStakers - Staking platform
  • Hipo - Staking platform
  • Bemo - Staking platform
  • Stakee - Staking platform

Key Features

  • Optimal Routing - Find the best prices across all supported DEXs
  • Multi-hop Swaps - Execute complex trading paths automatically
  • Split Routes - Divide large trades across multiple pools for better rates
  • Real-time Data - Live prices, liquidity, and market analytics

Quick Start

For Developers

Integrate xDelta into your application using our comprehensive API:

  1. API Overview - Complete API documentation and endpoint reference

For Traders

  • Access optimal swap rates across all TON DEXs
  • Monitor real-time prices and liquidity
  • Execute complex trading strategies with advanced routing

Getting Started

The fastest way to start using xDelta is through our API. Here's the basic workflow:

// 1. Find optimal route
const route = await fetch('https://backend.xdelta.fi/api/v1/route', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
input_token: "TON", // Can use "TON" symbol or contract address
output_token: "EQCxE6mUtQJKFnGfaROTKOt1lZbDiiX1kCixRv7Nw2Id_sDs", // USDT
input_amount: 1000000000 // 1 TON
})
});

// 2. Compose transaction
const compose = await fetch('https://backend.xdelta.fi/api/v1/compose', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
multiroute: route.data.multiroute, // Pass route data
user_address: "EQDk2VTvn04SUKJrW7rXahzdF8_Qi6utb0wj43InCu9vdjrR",
slippage: 0.01
})
});

// 3. Execute via TON Connect
// Send compose.data.messages to user's wallet

Support

Next Steps