DEX APIDApp Connect Wallet
HomeTrade APIMarket APIResources
Introduction
Guides
Build Swap Applications
Build Cross Chain Applications
Swap API
Introduction
API Reference
Get Supported ChainsGet TokensGet Liquidity SourcesApprove TransactionsGet QuotesGet Solana Swap InstructionsSwapGet Transaction Status
Adding Fees DEX-IntegrationSmart ContractError CodesFAQ
Cross Chain API
Introduction
API Reference
Supported BridgesSmart ContractError CodesFAQ
Onchain Gateway API
Introduction
API Reference
Error Codes
Trade API
DEX API
Trade API
Swap API
API Reference

API Reference#

Get Supported Chains
Get chains available that support single-chain transactions
Get Tokens
Get tokens available for swap in the OKX aggregation protocol
Get Liquidity Sources
Get liquidity sources available for swap in the OKX aggregation protocol
Approve Transactions
Generate the relevant data for calling the contract
Get Quotes
Get the best quote for a swap through OKX DEX
Get Solana Swap Instructions
Get solana swap instructions through the OKX DEX
Swap
Generate the data for calling the OKX DEX router to swap
Get Transaction Status
Get swap transaction history through the OKX DEX
Introduction
Get Supported Chains