Skip to content

Releases: okx/okx-dex-sdk

v1.0.1 improved support for EVM

25 Feb 01:58
2681bf7
Compare
Choose a tag to compare

Improved support for TON and Tron

  • Updated TON and Tron network examples
  • Improved transaction handling for EVM

EVM, Solana, SUI Swap support

14 Feb 01:48
ab6349c
Compare
Choose a tag to compare

OKX DEX SDK Release Notes

New Features

  • Multi-chain Support
    • Added support for single-chain swap transactions on EVM chains, Solana, and SUI networks
    • Infrastructure ready for TON and TRON networks (chain information available, asset swaps coming soon)

API Endpoints

The SDK now implements all standard endpoints as specified in our DEX API developer documentation:

Chain Management

  • getSupportedChains(): Retrieve available chains supporting single-chain transactions
    • Returns comprehensive chain information for EVM networks, Solana, SUI, TON, and TRON
    • Includes network configurations, RPC endpoints, and chain-specific parameters

Token Operations

  • getTokens(): Access the complete list of tokens available for swapping
    • Supports token discovery across all implemented chains
    • Includes token metadata, decimals, and contract addresses

Liquidity Access

  • getLiquiditySources(): Query available liquidity sources in the OKX aggregation protocol
    • Returns active DEXes and liquidity pools
    • Provides real-time availability status for each source

Quote Operations

  • getQuotes(): Fetch optimal swap routes

Swap Execution

  • swap(): Generate transaction data for the OKX DEX router

Technical Details

  • Standardized error handling across all chains
  • Comprehensive TypeScript type definitions
  • Gas estimation support for supported networks
  • Automatic slippage calculation
  • Built-in transaction simulation

Network Support Matrix

Network Chain Info Asset Discovery Single-Chain Swaps
EVM
Solana
SUI
TON -
TRON -

Integration Notes

  • All endpoints follow RESTful conventions

Coming Soon

  • swap support for TON and TRON networks