Trade Service
An overview of Okto's Trade Service, the API suite for integrating seamless, optimized cross-chain swaps into your application, powered by the Unified Liquidity Layer (ULL).
Introduction
The Okto Trade Service is a powerful API suite designed for developers looking to incorporate seamless cross-chain token swap functionality into their applications. It acts as the primary gateway to the capabilities of Okto's underlying Unified Liquidity Layer (ULL), abstracting away the complexities of multi-step bridging and swapping operations.
With the Trade Service, you can offer your users the ability to swap virtually any token on one supported chain for any other token on another supported chain through a single, simplified interface.
Flexible Integration Options
The Trade Service offers two primary integration paths:
- Via Okto Embedded Wallets: Use Swap Intents through the Okto SDK for a fully integrated experience with built-in wallet management.
- Via Any External Wallet: Use the Trade Service APIs directly to get transaction objects that can be signed and executed by any wallet provider (e.g., MetaMask).
This flexibility ensures you can leverage Okto's powerful swap infrastructure regardless of your existing wallet setup or user preferences.
Core Functionality at a Glance
The Trade Service uses an intent-based approach, focusing on what the user wants to achieve rather than how it needs to be done:
- Unified Swap Requests: Your application submits a request specifying the source token/chain, destination token/chain, and amount. (See ULL Supported Chains and FSTs for more details).
- Intelligent Routing: The Trade Service employs a sophisticated Pathfinder to determine the most optimal execution route. This considers factors like best price, lowest gas fees, execution speed, and slippage across various liquidity sources.
- Seamless Execution: It automatically coordinates all necessary steps behind the scenes. This may involve:
- Utilizing integrated DEX Aggregators (like 1inch, Socket, etc.) for efficient on-chain swaps if the source/destination tokens aren't directly Filler/Solver-Supported Tokens (FSTs). (Learn more about Fillers/Solvers).
- Leveraging the Unified Liquidity Layer (ULL) for the core secure cross-chain asset transfer via its network of solvers/fillers. (Read the detailed explanation of ULL).
- Abstraction: Developers and users don't need to manually interact with different bridges, DEXs, or manage multi-step transaction processes. The Trade Service handles the orchestration.
Key Benefits
- Simplified Integration: Provides a single API endpoint for complex cross-chain swaps.
- Optimal Execution: Automatically finds and executes the most efficient swap routes.
- Broad Token Coverage: Access swaps for a vast range of tokens via integrated aggregators.
- Enhanced User Experience: Offers users a simple "one-click" experience for cross-chain swaps.
Learn More
This page provides a high-level overview. For detailed information on architecture, features, API references, usage guides, and integration steps, please refer to the main Trade Service Documentation Section.
User Management
The User Management provides Vendors with comprehensive insights into user activity and order history for their application integrated with Okto. It enables you to monitor user engagement, track growth metrics, and review transaction history in a detailed, searchable format.
Cross-Chain Liquidity Intents
Cross-Chain Intent is a standardized approach to representing and fulfilling user requests that span multiple blockchains. ERC-7683 defines a universal “language” for describing these intents, letting specialized “fillers” handle the bridging, swapping, and final settlement. The Okto Ecosystem is adopting the ERC‑7683 standard as part of its effort to simplify cross‑chain interactions.