Trade
Best-price execution across DEXs
Execute trades with best-price execution across multiple DEXs & blockchains, auto-routing for optimal rates with MEV protection.
How It Works
Route Discovery
Enso Finance queries multiple DEXs across different blockchains to find the optimal trade path for your transaction.
Price Comparison
All available routes are compared factoring in gas costs, slippage, & price impact to ensure you get the best rate.
Execution
The best route is executed automatically with MEV protection & slippage safeguards to keep your trades secure.
API Usage
trade-example.ts
import { getEnsoRoute, executeEnsoRoute } from '@/lib/enso'
const route = await getEnsoRoute({
fromToken: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
toToken: '0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2',
amount: '1000000000', // 1000 USDC
fromAddress: userAddress,
chainId: 1,
slippage: 50,
})
console.log('Expected output:', route.amountOut)
console.log('Price impact:', route.priceImpact)
const receipt = await executeEnsoRoute({ route, wallet })Trade Fees
Same-chain trades1% (100 bps)
Cross-chain tradesBridge fees only
Was this helpful?