Understanding Swap Intents
Learn about Swap Intents for seamless cross-chain token exchanges using the Okto API.
What are Swap Intents?
Swap intents enable seamless token exchanges within and across blockchain networks through Okto's infrastructure. Whether you're swapping tokens on the same chain or swapping assets between different networks, swap intents abstract away the complexity while ensuring optimal execution.
Swap Intents are powered by Okto's Trade Service and Unified Liquidity Layer (ULL), which combined act as an aggregator of aggregators to provide optimal execution paths across multiple liquidity sources.
Integration Options
-
For Okto Embedded Wallets: Use Swap Intents through the Okto API for a streamlined, fully integrated experience.
-
For External Wallets: Access the same powerful swap functionality via the Trade Service APIs directly. The APIs provide transaction objects that can be signed and executed by any wallet provider, giving you complete flexibility in your integration approach.
How Swap Intents Work
When you execute a swap intent, Okto:
- Analyzes your swap request – Evaluates the source and destination tokens, networks, and user preferences.
- Discovers optimal routes – Leverages DEX aggregators and the Unified Liquidity Layer (ULL) to identify the most efficient execution path.
- Manages conversions – Seamlessly handles any required token conversions to filler supported tokens (FST) for cross-chain swaps.
- Executes the transaction – Processes the swap with integrated slippage protection and real-time market checks.
Key Features & Resources
Filler Supported Tokens (FST)
Tokens natively supported by Okto's ULL for direct cross-chain transfers without needing intermediate conversions via aggregators.
Swap Scenarios
Different types of swap operations including same-chain swaps and complex cross-chain operations with automatic routing.
Fee Structure
Fees and charges that apply to different types of swap transactions through the Trade Service and Swap Intents.
Refund Mechanisms
Automatic systems that return user funds when cross-chain transactions fail at various stages of execution.
Slippage Protection
Built-in slippage protection with dynamic calculations based on real-time market conditions and token volatility.
Next Steps
Ready to implement swap intents in your application? Explore the technical implementation guide and Trade Service architecture: