DEX API
Smart contract

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#

The contract addresses of OKX DEX router

ChainDEX router address
Ethereum0x7D0CcAa3Fac1e5A943c5168b6CEd828691b46B36
zkSync Era0xb9061E38FeE7d30134F56aEf7117E2F6d1580666
Optimism0xf332761c673b59B21fF6dfa8adA44d78c12dEF09
Polygon0xA748D6573acA135aF68F2635BE60CB80278bd855
BNB Chain0x9333C74BDd1E118634fE5664ACA7a9710b108Bab
OKC0xf6Aab105CB9e66e03CAD2c2F3f8558242593385c
Avalanche C0x1daC23e41Fc8ce857E86fD8C1AE5b6121C67D96d
Fantom0xf332761c673b59B21fF6dfa8adA44d78c12dEF09
Arbitrum0xf332761c673b59B21fF6dfa8adA44d78c12dEF09
Linea0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Conflux eSpace0x0112bc6fDB78345e612B862a6B388FfeB00E2320
Base0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Mantle0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Scroll0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Solana6m2CDdhRgxpH4WjvdzxAYbGxwdGUz5MziiL5jek2kBma
Manta0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Metis0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Blast0x2E86f54943faFD2cB62958c3deed36C879e3E944
Zeta0x0DaB5A5294AfAae76Ce990993fC10b896A01DBd1
Polygon zkEvm0x6b2C0c7be2048Daa9b5527982C29f48062B34D58
Merlin0x127a986cE31AA2ea8E1a6a0F0D5b7E5dbaD7b0bE
X Layer0x127a986cE31AA2ea8E1a6a0F0D5b7E5dbaD7b0bE

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
Scroll0x57df6092665eb6058DE53939612413ff4B09114E
Manta0x57df6092665eb6058DE53939612413ff4B09114E
Metis0x57df6092665eb6058DE53939612413ff4B09114E
Blast0x5fD2Dc91FF1dE7FF4AEB1CACeF8E9911bAAECa68
Zeta0x03B5ACdA01207824cc7Bc21783Ee5aa2B8d1D2fE
Polygon zkEvm0x57df6092665eb6058DE53939612413ff4B09114E
Merlin0x8b773D83bc66Be128c60e07E17C8901f7a64F000
X Layer0x8b773D83bc66Be128c60e07E17C8901f7a64F000

The Application Binary Interface of Contract (ABI)#

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