◻️Get Coin List

Provide token types list to display users, tell user which tokens can be traded

  1. Url:

https://{host}/api/v1/queryCoinList

2. Request parameter instance

parameter
whether
explain

supportType

no

Advanced: return only the currencies that support cross chain exchange, and return all currencies without transferring or transferring other values

mainNetwork

no

According to the currency main search

sourceFlag

yes

sourceFlag

3. Example of request parameters

{
    "supportType":"advanced",
    "mainNetwork":"ETH",
    "sourceFlag": "xxx"
}

4.Example of returned results

{
    "data": [
        {
            "coinAllCode": "SwftCoin",
            "coinCode": "SWFTC",
            "coinDecimal": 8,
            "contact": "0x0bb217E40F8a5Cb79Adf04E1aAb60E5abd0dfC1e",
            "isSupportAdvanced": "Y",
            "isSupportMemo": "N",
            "mainNetwork": "ETH",
            "noSupportCoin": "BOS,YOYO,..."
        },
        {
            "coinAllCode": "TetherUS",
            "coinCode": "USDT",
            "coinDecimal": 6,
            "contact": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "isSupportAdvanced": "Y",
            "isSupportMemo": "N",
            "mainNetwork": "BTC",
            "noSupportCoin": "BCC,UCTT,..."
        }
    ],
    "resCode": "800",
    "resMsg": "success",
    "resMsgEn": ""
}

5.Return Parameter Description

Field Name
Field
Type
Remarks

coinAllCode

coinAllCode

String

Bitcoin

coinCode

coinCode

String

BTC

coin decimal

coinDecimal

String

8

contact

contact

String

This field has a value only when the currency belongs to a token on a primary chain

isSupportAdvanced

isSupportAdvanced

String

Y: supported. N: no supported

isSupportMemo

isSupportMemo

String

Y: supported. N: no supported

mainNetwork

mainNetwork

String

For example, if SWFTC is the token on Ethereum, mainNetwork is ETH

noSupportCoin

noSupportCoin

String

If there are multiple unsupported currencies, separate them with ','. For example: "noSupportCoin":"TKT,SHE,AIDOC"

Code example

java code example

Nodejs code example

Postman example

Response result example

Important Items:

For some of the tokens supported on our platform, sometimes there will be a conflict with the tokens supported by other platforms or have different names for the token. In order to avoid sending the wrong token, you should used the names specifed in the fields mainNetworkand contact`, currently the platform supports ETH, BSC,HECO,MATIC,OEC,TRON,EOS,XRP, etc. mainnet's tokens.

Last updated