直达内容

Read Assets

GET /network/assets/:asset_id

Query public information of a specified asset.

API 端点 URL

 https://api.mixin.one/network/assets/:asset_id

授权和其他选项

授权公开访问
限制No limitation

参数

asset_id
*必须
the asset's id

请求示例

curl -i -X GET -H "Content-Type: application/json"  https://api.mixin.one/network/assets/c94ac88f-4671-3976-b60a-09064f1811e8
Response
{
"data": {
"amount": "296369.17400899",
"asset_id": "c94ac88f-4671-3976-b60a-09064f1811e8",
"chain_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"icon_url": "https://images.mixin.one/UasWtBZO0TZyLTLCFQjvE_UYekjC7eHCuT_9_52ZpzmCC-X-NPioVegng7Hfx0XmIUavZgz5UL-HIgPCBECc-Ws=s128",
"name": "Mixin",
"snapshots_count": 35224199, // The transfer count of this assets.
"symbol": "XIN",
"type": "asset"
}
}

GET /network/assets/top

Query the list of the top 100 assets on the entire network

API 端点 URL

 https://api.mixin.one/network/assets/top

授权和其他选项

授权公开访问
限制No limitation

请求示例

curl -i -X GET -H "Content-Type: application/json"  https://api.mixin.one/network/assets/top
Response
{
"data":[
{
"type": "asset",
"asset_id": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"chain_id": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"asset_key": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"mixin_id": "fe6b7788944d328778f98e3e81588215b5a07de4f9a4a7de4db4535b404e65db",
"symbol": "BTC",
"name": "Bitcoin",
"icon_url": "https://mixin-images.zeromesh.net/HvYGJsV5TGeZ-X9Ek3FEQohQZ3fE9LBEBGcOcn4c4BNHovP4fW4YB97Dg5LcXoQ1hUjMEgjbl1DPlKg1TW7kK6XP=s128",
"amount": "0.1213",
"price_btc": "1",
"price_usd": "14996.98",
"change_btc": "0", // change percent compare to 24 hours before
"change_usd": "-0.03773542533280206", // change percent compare to 24 hours before
"confirmations": 3,
"reserve": "0",
"fee_asset_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"fee": "0.0001",
"snapshots_count": 100,
"capitalization": 144241811.6455701, // Market cap.
"liquidity": "9618.05721189" // The amount of this asset in Minxin.
},
...
]
}

GET /network/assets/search/:q

Search for popular assets by symbol or name.

信息

This API only returns assets with icons or prices.

API 端点 URL

 https://api.mixin.one/network/assets/search/:q

授权和其他选项

授权公开访问
限制No limitation

参数

q
*必须
the keyword

请求示例

curl -i -X GET -H "Content-Type: application/json"  https://api.mixin.one/network/assets/search/btc
Response
{
"data":[
{
"type": "asset",
"asset_id": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"chain_id": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"asset_key": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"mixin_id": "fe6b7788944d328778f98e3e81588215b5a07de4f9a4a7de4db4535b404e65db",
"symbol": "BTC",
"name": "Bitcoin",
"icon_url": "https://mixin-images.zeromesh.net/HvYGJsV5TGeZ-X9Ek3FEQohQZ3fE9LBEBGcOcn4c4BNHovP4fW4YB97Dg5LcXoQ1hUjMEgjbl1DPlKg1TW7kK6XP=s128",
"amount": "0.1213",
"price_btc": "1",
"price_usd": "14996.98",
"change_btc": "0", // change percent compare to 24 hours before
"change_usd": "-0.03773542533280206", // change percent compare to 24 hours before
"confirmations": 3,
"reserve": "0",
"fee_asset_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"fee": "0.0001",
"snapshots_count": 100,
"capitalization": 144241811.6455701, // Market cap.
"liquidity": "9618.05721189" // The amount of this asset in Minxin.
},
...
]
}

GET /network/assets/multisig

Query the list of all assets that support multi-signature.

警告

This API is Obsoleted.

API 端点 URL

 https://api.mixin.one/network/assets/multisig

授权和其他选项

授权公开访问
限制No limitation

请求示例

curl -i -X GET -H "Content-Type: application/json"  https://api.mixin.one/network/assets/multisig
Response
{
"data":[
{
"type": "asset",
"asset_id": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"chain_id": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"asset_key": "c6d0c728-2624-429b-8e0d-d9d19b6592fa",
"mixin_id": "fe6b7788944d328778f98e3e81588215b5a07de4f9a4a7de4db4535b404e65db",
"symbol": "BTC",
"name": "Bitcoin",
"icon_url": "https://mixin-images.zeromesh.net/HvYGJsV5TGeZ-X9Ek3FEQohQZ3fE9LBEBGcOcn4c4BNHovP4fW4YB97Dg5LcXoQ1hUjMEgjbl1DPlKg1TW7kK6XP=s128",
"amount": "0.1213",
"price_btc": "1",
"price_usd": "14996.98",
"change_btc": "0", // change percent compare to 24 hours before
"change_usd": "-0.03773542533280206", // change percent compare to 24 hours before
"confirmations": 3,
"reserve": "0",
"fee_asset_id": "43d61dcd-e413-450d-80b8-101d5e903357",
"fee": "0.0001",
"snapshots_count": 100,
"capitalization": 144241811.6455701, // Market cap.
"liquidity": "9618.05721189" // The amount of this asset in Minxin.
},
...
]
}