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 /swap API for approvals and transactions.

DEX Router#

ChainDEX router address
Ethereum0x5E1f62Dac767b0491e3CE72469C217365D5B48cC
SolanaproVF4pMXVaYqmy4NjniPh4pqKNfMmsihgd4wdkCX3u
SUI0xafff5502633f670a64328813b66fa08bc7a642ac9c81ed6c4b7ec5448e3b23ad extended: 0xab71c2c2c37f973e28b2d28847046615bf47acc85ffc3ba2eb3d9a6442b18422 For package ID, it ran into the Sui package size limit. We need to deploy an extended contract that supports liquidity integrations with Momentum, Scallop, Haedal, Alphafi, and others)
Sonic0x86F752f1F662f39BFbcBeF95EE56B6C20d178969
TronTU7NYwqhPUMjBBYQYxQJVmnY7KuJCqMFuu
TonEQBjfOGw4Iq6FYZplhwZ5rRNb7Htac7WJh8g_eQcGTswxVqP
zkSync Era0x3163Ed233a3Cb5E6B7F10A6f02b01F15867a8779
Optimism0x6733Eb2E75B1625F1Fe5f18aD2cB2BaBDA510d19
Polygon0x057cfd839aa88994d1a8a8c6d336cf21550f05ef
BNB Chain0x3156020dfF8D99af1dDC523ebDfb1ad2018554a0
Avalanche C0x8aDFb0D24cdb09c6eB6b001A41820eCe98831B91
Fantom0xcF76984119C7f6ae56fAfE680d39C08278b7eCF4
Arbitrum0x368E01160C2244B0363a35B3fF0A971E44a89284
Linea0x9EaBF1D34819D9eC9Fe5fd3Db4e9DCD12Fa05284
Conflux eSpace0x23e2f2fa1967faffde2e05fdecbb3fa787a5d3e5
Base0x4409921ae43a39a11d90f7b7f96cfd0b8093d9fc
Mantle0xF5402CCC5fC3181B45D7571512999D3Eea0257B6
Scroll0x6733Eb2E75B1625F1Fe5f18aD2cB2BaBDA510d19
Manta0x8feB9E84b7E9DC86adc6cD6Eb554C5B4355c8405
Metis0xDd5E9B947c99Aa60bab00ca4631Dce63b49983E7
Blast0xc9da86c392101047188bae98ccc192271a136a13
Zeta0x8feB9E84b7E9DC86adc6cD6Eb554C5B4355c8405
Polygon zkEvm0x79f7C6C6dc16Ed3154E85A8ef9c1Ef31CEFaEB19
Merlin0xd3b3e6433d6a7f94c28ce907311fb21b0f0b659e
X Layer0x0efa3a01eb0708f9e40b661c6cd7c56c83b9f45a
UniChain0x23E2f2FA1967FAffde2e05fDecbb3fa787A5D3E5
Cronos0xcF76984119C7f6ae56fAfE680d39C08278b7eCF4
Plasma0x5c1c902e7e04de98b49acd3de68e12bee2d7908d
Monad0x6088d94C5a40CEcd3ae2D4e0710cA687b91c61d0

DEX Router Addresses for OKX DEX used in signing exactOut transactions

Chain NameDEX Router Contract Address
Ethereum0xa875Fb2204cE71679BE054d97f7fAFFeb6536D67
Base0x77449Ff075C0A385796Da0762BCB46fd5cc884c6
BNB Chain0x5cb43Bae4f36E2f9f858232B4Dce0dbE27bb85e3
Arbitrum0x9736d9a45115E33411390EbD54e5A5C3A6E25aA6

Token Approval#

A list of smart contracts for ERC-20 token approval. Ton and Solana chains do not require authorization.

ChainApproval contract address
Ethereum0x40aA958dd87FC8305b97f2BA922CDdCa374bcD7f
TronTHRAE2VhGNAcvPKtT96AqyXtSQwhiU1XL8
Sonic0xd321ab5589d3e8fa5df985ccfef625022e2dd910
zkSync Era0xc67879F4065d3B9fe1C09EE990B891Aa8E3a4c2f
Optimism0x68D6B739D2020067D1e2F713b999dA97E4d54812
Polygon0x3B86917369B83a6892f553609F3c2F439C184e31
BNB Chain0x2c34A2Fb1d0b4f55de51E1d0bDEfaDDce6b7cDD6
OKC0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58
Avalanche C0x40aA958dd87FC8305b97f2BA922CDdCa374bcD7f
Fantom0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58
Arbitrum0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58
Linea0x57df6092665eb6058DE53939612413ff4B09114E
Conflux eSpace0x68D6B739D2020067D1e2F713b999dA97E4d54812
Base0x57df6092665eb6058DE53939612413ff4B09114E
Mantle0x57df6092665eb6058DE53939612413ff4B09114E
Scroll0x57df6092665eb6058DE53939612413ff4B09114E
Manta0x57df6092665eb6058DE53939612413ff4B09114E
Metis0x57df6092665eb6058DE53939612413ff4B09114E
Blast0x5fD2Dc91FF1dE7FF4AEB1CACeF8E9911bAAECa68
Zeta0x03B5ACdA01207824cc7Bc21783Ee5aa2B8d1D2fE
Polygon zkEvm0x57df6092665eb6058DE53939612413ff4B09114E
Merlin0x8b773D83bc66Be128c60e07E17C8901f7a64F000
X Layer0x8b773D83bc66Be128c60e07E17C8901f7a64F000
UniChain0x2e28281Cf3D58f475cebE27bec4B8a23dFC7782c
Cronos0x70cbb871e8f30fc8ce23609e9e0ea87b6b222f58
Plasma0x9FD43F5E4c24543b2eBC807321E58e6D350d6a5A
Monad0xf534A8a1CAD0543Cd6438f7534CA3486c01998d4

Contract Application Binary Interface (ABI)#

Please refer to: https://github.com/okxlabs/DEX-Router-EVM-V1/tree/main/DexRouterabi https://github.com/okxlabs/Web3-DEX-EVM-PMM