DEX API

Smart contract#

The contract addresses of OKX DEX router and ABI

The contract addresses of the DEX router and token approval may be subject to replacement due to contract upgrades. To ensure uninterrupted use of the API, we recommend using the contract addresses returned by the response parameters: /approve-transaction API and /build-tx API for approvals and transactions.

DEX router#

The contract addresses of OKX DEX router,check here to get detail.

Token approval#

A list of smart contracts for ERC-20 token approval,check here to get detail.

DEX XBridge address#

The contract addresses of OKX Xbridge,used for signing cross-chain transactions

ChainDEX XBridge contract address
Ethereum0xFc99f58A8974A4bc36e60E2d490Bb8D72899ee9f
BNB Chain0xFc99f58A8974A4bc36e60E2d490Bb8D72899ee9f
OKTC0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Polygon0x89f423567c2648BB828c3997f60c47b54f57Fa6e
Fantom0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Arbitrum0xFc99f58A8974A4bc36e60E2d490Bb8D72899ee9f
Optimism0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Cronos0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Avalanche C0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
TRONTVaV2BBs8tpthbp19QAy7ibmXLoYsomKDD
SolanaokxBd18urPbBi2vsExxUDArzQNcju2DugV9Mt46BxYE
zkSync Era0x4040bEC373F6e8be2F913324de94A7b9242E5E92
Polygon zkEvm0x5965851f21DAE82eA7C62f87fb7C57172E9F2adD
Linea0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Mantle0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Base0x5965851f21DAE82eA7C62f87fb7C57172E9F2adD
Manta0x91EcECC4F2363770c621a8a061A80d67cfEafEC7
Metis0xa50FD06d2b099a4B06d54177C7d3AB08D3D3F004
SUI0x3d097b26cd6a13a0c37e983e81be72cd2965c4dc717a03471e3a7388c21c9263
Scroll0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Starknet0x00e704db07356df9a2ba8cd2a131e0192b9d9d9ddb518eb3bd4e8fb4a1f0901c
Blast0xf956d9fa19656d8e5219fd6fa8ba6cb198094138
Merlin0xf956d9fa19656d8e5219fd6fa8ba6cb198094138
X Layer0x5965851f21DAE82eA7C62f87fb7C57172E9F2adD

The Application Binary Interface of Contract (ABI)#

Please refer to: https://github.com/okx/OKX-DEX-Aggregator-ABI