Asset Balance Interface

Return balance of target token

POST https://admin.ccpayment.com/ccpayment/v1/assets

Return the balance of the target token

Headers

Name
Type
Description

Appid*

string

Merchant's unique credential. Find it on the Developer pagearrow-up-right.

Timestamp*

string

Timestamp in seconds (10-digit). The request is valid for two minutes.

Sign*

string

SHA-256 (APPID + APP Secret +timestamp+body (json string)). Signature guidearrow-up-right.

Content-Type*

String

application/json; charset=utf-8

Request Body

Name
Type
Description

coin_id

string

Coin ID for the target coin. Get coin id by calling interface or checking it on the sheetarrow-up-right Get the balance of all assets if no parameters are included in the request body.

Response

Body

{
    "code": 10000,
    "msg": "success",
    "data": {
        "list": [
            {
                "coin_id": "8e5741cf-6e51-4892-9d04-3d40e1dd0128",
                "crypto": "USDT",
                "name": "Tether USD",
                "value": "127.9514",
                "price": "1",
                "logo": "https://resource.cwallet.com/token/icon/usdt.png"
            }
        ]
    }
}

Parameters

Request Body Example

Last updated