Skip to main content

Read Asset

GET /assets/:asset_id

This api obtain the asset list of a user, the ASSETS:READ permission is required.

  • asset_id in Messenger is UUID: c94ac88f-4671-3976-b60a-09064f1811e8
  • Asset in Mixin Mainnet is a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc

Can get the detail of the asset by https://api.mixin.one/network/assets/c94ac88f-4671-3976-b60a-09064f1811e8 or https://api.mixin.one/network/assets/a99c2e0e2b1da4d648755ef19bd95139acbbe6564cfb06dec7cd34931ca72cdc .

Endpoint URL

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

Authentication and options

Authorization
ASSETS:READ
LimitationNo limitation

Parameters

asset_id
*required
the asset's asset_id you are getting

Example request

curl -i -X GET -H "Content-Type: application/json" -H "Authorization: Bearer $TOKEN" https://api.mixin.one/assets/$ASSET_ID
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": "",
},
],
}
}