简要描述:

  • 获取货币列表

请求域名:

  • http://xx.com

请求URL:

POST/wapapi/addons/blockchain/blockchain/getTokenAccountList

参数:

返回示例:

正确时返回:

{
    "code": "200",
    "data": {
    	{
            "address": "0x20b102aaa15f616304465f74a75b08379e10d41b",
            "id": 44,
            "isExt": 0,
            "fixedMarketPriceStr": null,
            "enabled": 1,
            "symbol": "ETH",
            "code": null,
            "isUnrealMarketPrice": null,
            "fixedMarketPrice": 0,
            "appId": null,
            "rpcType": null,
            "publicLink": "ETH",
            "decimals": 18,
            "tokenName": "Ethereum",
            "logo": "https://cn.etherscan.com/images/main/empty-token.png",
            "balance": 7568.6,
            "money": 0.461112,
            "state_code": 1,
            "state_message": "获取成功"
        },
	}
}

错误时返回:

{
    "code": -1,
    "message": "error message"
}

返回参数说明:

参数名 类型 说明
msg string 返回的信息
data array 币种列表
symbol string 币种符号
publicLink string 币种公链
logo string 币种logo
state_code int 钱包状态 非1的需要先去创建eth钱包或者eos钱包
state_message string 钱包状态信息
balance string 币种余额
money string 币种值金额
address string 用户地址

备注:

  • 更多返回错误代码请看首页的错误代码描述