读取加密货币资产列表
GET /assets
本 API 返回当前用户的所有加密资产列表。
API 端点 URL
https://api.mixin.one/assets
请求示例
curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/assets
Response
{
"data": [
{
"type": "asset",
"asset_id": "3596ab64-a575-39ad-964e-43b37f44e8cb",
"chain_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"fee_asset_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"symbol": "eosDAC",
"name": "eosDAC Community Owned EOS Block Producer ERC20 Tokens",
"icon_url": "https://images.mixin.one/HovctUnrBkLPlDotWvWPsIuFb8qKrLddwF5-f2Fi9q9uO829YB2qGITgOd2YmTMKnGg_z9XrVYzEwFE_rD_REz9C=s128",
"balance": "203.975",
"price_btc": "0",
"price_usd": "0",
"change_btc": "1", // change percent compare to 24 hours before
"change_usd": "2", // change percent compare to 24 hours before
"asset_key": "",
"mixin_id": "b6b8d99b7cecf810980aaeef17a48f82ed573f2552517d4932d195181bc6ba11",
"reserve": "",
"confirmations": 10,
"capitalization": 1000.3,
"liquidity": "",
"deposit_entries": [
{
"destination": "0x2CEab41716F4ce0Db36B6FdABEdc6a0BE5DC442B",
"tag": "",
"properties": "",
},
],
},
...
]
}
信息
该接口只会返回余额大于 0 的资产列表,新用户没有任何资产,因此会返回空列表。