DEX API

Smart contract#

The contract addresses of OKX DEX router and ABI

Contract address#

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

ChainDEX router address
Ethereum0x3b3ae790Df4F312e745D270119c6052904FB6790
zkSync Era0xb9061E38FeE7d30134F56aEf7117E2F6d1580666
Optimism0xf332761c673b59B21fF6dfa8adA44d78c12dEF09
Polygon0xA748D6573acA135aF68F2635BE60CB80278bd855
BNB Chain0x9333C74BDd1E118634fE5664ACA7a9710b108Bab
OKC0xf6Aab105CB9e66e03CAD2c2F3f8558242593385c
Avalanche C0x1daC23e41Fc8ce857E86fD8C1AE5b6121C67D96d
Fantom0xf332761c673b59B21fF6dfa8adA44d78c12dEF09
Arbitrum0xf332761c673b59B21fF6dfa8adA44d78c12dEF09
Linea0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Conflux eSpace0x0112bc6fDB78345e612B862a6B388FfeB00E2320
Base0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Mantle0x6b2C0c7be2048Daa9b5527982C29f48062B34D58

Token approval#

A list of smart contracts for ERC-20 token approval

ChainApproval contract address
Ethereum0x40aA958dd87FC8305b97f2BA922CDdCa374bcD7f
zkSync Era0xc67879F4065d3B9fe1C09EE990B891Aa8E3a4c2f
Optimism0x68D6B739D2020067D1e2F713b999dA97E4d54812
Polygon0x3B86917369B83a6892f553609F3c2F439C184e31
BNB Chain0x2c34A2Fb1d0b4f55de51E1d0bDEfaDDce6b7cDD6
OKC0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58
Avalanche C0x40aA958dd87FC8305b97f2BA922CDdCa374bcD7f
Fantom0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58
Arbitrum0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58
Linea0x57df6092665eb6058DE53939612413ff4B09114E
Conflux eSpace0x68D6B739D2020067D1e2F713b999dA97E4d54812
Base0x57df6092665eb6058DE53939612413ff4B09114E
Mantle0x57df6092665eb6058DE53939612413ff4B09114E

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
SolanaAqwtzPZxUmM6KoDCm5ceC7kje4DB2bLPRjKVJ8njCjKx
zkSync Era0x4040bEC373F6e8be2F913324de94A7b9242E5E92
Polygon zkEvm0x5965851f21DAE82eA7C62f87fb7C57172E9F2adD
Linea0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Mantle0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Base0x5965851f21DAE82eA7C62f87fb7C57172E9F2adD
Manta0x91EcECC4F2363770c621a8a061A80d67cfEafEC7
Metis0xa50FD06d2b099a4B06d54177C7d3AB08D3D3F004
SUI0x3d097b26cd6a13a0c37e983e81be72cd2965c4dc717a03471e3a7388c21c9263
Scroll0xf956D9FA19656D8e5219fd6fa8bA6cb198094138
Starknet0x00e704db07356df9a2ba8cd2a131e0192b9d9d9ddb518eb3bd4e8fb4a1f0901c
Blast0xf956d9fa19656d8e5219fd6fa8ba6cb198094138
Merlin0xf956d9fa19656d8e5219fd6fa8ba6cb198094138
X Layer0x5965851f21DAE82eA7C62f87fb7C57172E9F2adD
sui0xa4d4c1b9bccd5e84224586a68937efe4dcbf9013fb90e5c8a5bdb1e3895dbfa8

The Application Binary Interface of Contract (ABI)#

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