API URL

POST /api/v1/coins

Query the supported currency information of the project. The token-related information can be used in other APIs.

Request

Request Parameters

NameTypeRequiredDescription
pidinteger(int64)YesProject ID
noncestringYes6-digit random string
timestampinteger(int64)YesTimestamp
signstringYesSignature
Request Example
{
    "pid": 1382528827416576,
    "nonce": "m8jisx",
    "timestamp": 1687848653294,
    "sign": "cebd2bfd56766f1143dc40d078b64dac"
}

Response

Response Parameters

NameTypeDescription
codestringResponse code
msgstringResponse message
dataobjectResponse data object
Response data object
NameTypeDescription
coin_namestringToken name
chain_idstringChain ID
token_idstringToken ID, for tokens it’s the contract address
Response Example
{
    "code": "00000",
    "msg": "ok",
    "data": {
        "payout_coins": [
            {
                "coin_name": "TRON#Shasta",
                "chain_id": "195",
                "token_id": "195"
            },
            {
                "coin_name": "Dogecoin",
                "chain_id": "3",
                "token_id": "3"
            }
        ],
        "order_coins": [
            {
                "coin_name": "TRON#Shasta",
                "chain_id": "195",
                "token_id": "195"
            },
            {
                "coin_name": "Dogecoin",
                "chain_id": "3",
                "token_id": "3"
            }
        ],
        "address_coins": [
            {
                "coin_name": "TRON#Shasta",
                "chain_id": "195",
                "token_id": "195"
            },
            {
                "coin_name": "Dogecoin",
                "chain_id": "3",
                "token_id": "3"
            }
        ]
    }
}