Introduction
Explore the comprehensive API documentation for OKX's DEX cross-chain aggregator, designed to facilitate seamless cross-chain swaps and liquidity aggregation. This guide covers essential endpoints, query methods, and transaction workflows to integrate cross-chain functionality into your applications.
Wallet API Overview
Key Features:
- On-Chain Information Query: Retrieve real-time blockchain data.
- Account Management: Securely manage wallet accounts.
- Transaction Broadcasting: Execute and monitor transactions.
- Signing SDK: Tools for cryptographic signing.
DEX API Endpoints
Core Functionalities:
Swap API:
- Token-to-token exchanges within a single chain.
- Rate calculations and slippage tolerance.
Cross-Chain API:
- Supports multi-chain asset transfers.
- Route optimization for cost-efficient swaps.
Endpoint Reference:
| Endpoint | Description |
|---|---|
Get Supported Chains | Lists chains compatible with cross-chain swaps. |
Get Tokens | Fetches available tokens for trading. |
Get Route Information | Identifies optimal swap paths. |
Cross-Chain Swap | Executes cross-chain transactions. |
Market Data & DeFi Integration
Marketplace API:
- BTC Ordinals: Trade Bitcoin-based digital artifacts.
- Runes API: Manage tokenized assets on the Runes protocol.
DeFi API Highlights:
- Yield Farming: Stake and earn rewards.
- Lending Pools: Borrow and lend assets across chains.
FAQ Section
Q1: How do I start using the DEX API?
A: Review the Quick Start Guide for initial setup steps.
Q2: What chains are supported for cross-chain swaps?
A: Use the Get Supported Chains endpoint for an updated list.
Q3: How do I track swap status?
A: Call Get Transaction Status with the transaction hash.
Q4: Are there rate limits?
A: Yes, refer to the API documentation for tier-specific limits.
Additional Resources
This documentation is regularly updated. For the latest changes, check the Changelog.
### Key SEO Elements:
- **Primary Keywords**: DEX API, cross-chain swap, OKX aggregator, blockchain API.
- **Secondary Keywords**: Wallet integration, swap route, transaction status.
- **Anchor Texts**: Contextual links with actionable CTAs.
- **Structure**: Hierarchical headings, tables for data clarity, and FAQ for user intent.