Get supported chains#
Get information from chains that support limit order transactions. Use a request to return a supported chain.
Supported Chains#
- Ethereum Mainnet
- OP Mainnet
- Polygon Mainnet
- BNB Smart Chain Mainnet
- OKT Chain
- Avalanche C-Chain
- Fantom Opera
- Arbitrum One
Note
For network and chainId correlations, please visit the Network chainId mapping .
Request address#
GET https://web3.okx.com/api/v5/dex/aggregator/limit-order/chain
Request param#
| Parameter | Type | Required | Description | 
|---|---|---|---|
| chainId | Integer | No | Unique identifier for the chain. If left empty ````, the response will return all supported chain information. If a specific chain ID is provided, information for that chain will be returned, e.g., 1: Ethereum. See more here. | 
Response param#
| Parameter | Type | Description | 
|---|---|---|
| chainId | Integer | Unique identifier for the chain (e.g., 1: Ethereum; see more here). | 
| chainName | String | Chain name     (e.g., Optimism) | 
| dexTokenApproveAddress | String | dex token Approve Contract Address | 
Request example#
shell
curl --location --request GET 'https://web3.okx.com/api/v5/dex/aggregator/limit-order/chain?chainId=1' \
--header 'OK-ACCESS-PROJECT: 86af********d1bc' \
--header 'OK-ACCESS-KEY: 37c541a1-****-****-****-10fe7a038418' \
--header 'OK-ACCESS-SIGN: leaV********3uw=' \
--header 'OK-ACCESS-PASSPHRASE: 1****6' \
--header 'OK-ACCESS-TIMESTAMP: 2023-10-18T12:21:41.274Z'
Response example#
200
{
    "code":"0",
    "data":[
        {
            "chainId":137,
            "chainName":"Polygon",
            "dexTokenApproveAddress":"0x3B86917369B83a6892f553609F3c2F439C184e31"
        },
        {
            "chainId":43114,
            "chainName":"Avalanche C",
            "dexTokenApproveAddress":"0x40aA958dd87FC8305b97f2BA922CDdCa374bcD7f"
        },
        {
            "chainId":1,
            "chainName":"Ethereum",
            "dexTokenApproveAddress":"0x40aA958dd87FC8305b97f2BA922CDdCa374bcD7f"
        },
        {
            "chainId":66,
            "chainName":"OKTC",
            "dexTokenApproveAddress":"0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58"
        },
        {
            "chainId":56,
            "chainName":"BNB Chain",
            "dexTokenApproveAddress":"0x2c34A2Fb1d0b4f55de51E1d0bDEfaDDce6b7cDD6"
        },
        {
            "chainId":250,
            "chainName":"Fantom",
            "dexTokenApproveAddress":"0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58"
        },
        {
            "chainId":42161,
            "chainName":"Arbitrum",
            "dexTokenApproveAddress":"0x70cBb871E8f30Fc8Ce23609E9E0Ea87B6b222F58"
        },
        {
            "chainId":10,
            "chainName":"Optimism",
            "dexTokenApproveAddress":"0x68D6B739D2020067D1e2F713b999dA97E4d54812"
        }
    ],
    "msg":""
}
