帮助中心

获取相应的币种及协议

获取相应的币种及协议

1. 接口说明

      此接口用于获取商户所支持的币种及相应协议。  


2.请求URL

     域名/api/common/currency


3. 请求格式

    application/json  


4. 请求方式

     POST  


5. 参数





6. 返回示例


    {
        "code": 0,
        "msg": "成功",
        "data": {
            "currency_list": [  // 币种列表
                {
                    "id": 1,   // ID
                    "currency": "usdt", //标识
                    "alias": "USDT", // 别名
                    "thumb": "uploads/currency/trx.png"
                },
                {
                    "id": 2,
                    "currency": "trx",
                    "alias": "TRX",
                    "thumb": "uploads/currency/trx.png"
                },
                {
                    "id": 3,
                    "currency": "btc",
                    "alias": "BTC",
                    "thumb": "uploads/currency/btc.png"
                },
                {
                    "id": 4,
                    "currency": "slib",
                    "alias": "SLIB",
                    "thumb": "uploads/currency/trx.png"
                },
                {
                    "id": 5,
                    "currency": "ht",
                    "alias": "HT",
                    "thumb": "uploads/currency/trx.png"
                }
            ],
            "agreement_list": {  // 协议
                "1": [ //  ID:1的币种 支技的协议
                    {
                        "id": 1,   // ID
                        "agreement": "eth",  // 标识
                        "alias": "ETC20" // 别名
                    },
                    {
                        "id": 2,
                        "agreement": "trc20",
                        "alias": "TRC20"
                    },
                    {
                        "id": 3,
                        "agreement": "heco",
                        "alias": "HECO"
                    },
                    {
                        "id": 4,
                        "agreement": "bvc",
                        "alias": "BFP20"
                    },
                    {
                        "id": 5,
                        "agreement": "omni",
                        "alias": "OMNI"
                    }
                ],
                "2": [
                    {
                        "id"