Asset Info Service API
Review
Endpoints are available for getting a currency(coins, tokens, fiat) list, adding, editing and deleting, assets.
Data Types
AssetMeta
Metadata for assets.
AssetData
Information about an asset with optional metadata.
Data structure:
[AssetMeta](#assetmeta) & [Asset](/cloud-services/models/#asset)
export type FiatData = AssetMeta & Fiat;
export type CoinData = AssetMeta & Coin;
export type Erc20TokenData = AssetMeta & Erc20Token;
export type Erc721NftData = AssetMeta & Erc721Nft;
export type Erc1155NftData = AssetMeta & Erc1155Nft;
API for Getting a List of Assets
Swagger Asset Info list API
Getting a List of Fiat Assets
Request Structure
GET /api/fiat/list
Response Structure
{
requestId: string,
data: [
{
kind: 'fiat',
currency: string,
name: string,
ticker: string
icon: string,
decimals: number,
tags: string[]
},
]
}
Response Example
{
"requestId": "string",
"data": [
{
"kind": "fiat",
"currency": "usd",
"name": "US Dollar",
"ticker": "$",
"icon": "https://url-to-cdn/usd-icon.svg",
"decimals": 2,
"tags": []
},
{
"kind": "fiat",
"currency": "eur",
"name": "Euro",
"ticker": "€",
"decimals": 2,
"tags": []
}
]
}
Contains
requestId
- request identifier (string - uuid);data
- array of FiatData objects.
Getting a List of Coins
Request Structure
GET /api/coin/list
Response Structure
{
requestId: string,
data: [
{
kind: 'coin',
chain: Chain,
name: string,
ticker: string
icon: string,
decimals: number,
tags: string[]
},
]
}
Response Example
{
"requestId": "string",
"data": [
{
"kind": "coin",
"chain": "btc",
"name": "Bitcoin",
"ticker": "BTC",
"icon": "https://url-to-cdn/icon.svg",
"decimals": 12,
"tags": []
},
{
"kind": "coin",
"chain": "eth",
"name": "Ethereum",
"ticker": "ETH",
"decimals": 18,
"tags": []
}
]
}
Contains
requestId
- request identifier (string - uuid);data
- array of objects CoinData.
Getting a List of ERC20 Tokens
Request Structure
GET /api/erc20/list
Response Structure
{
requestId: string,
data: [
{
kind: 'erc20',
chain: Chain,
contract: string,
name: string,
ticker: string
icon: string,
decimals: number,
tags: string[]
},
]
}
Response Example
[
{
"kind": "erc20",
"chain": "eth",
"contract": "0x6b175474e89094c44da98b954eedeac495271d0f",
"name": "Dai",
"ticker": "DAI",
"icon": "https://url-to-cdn/dai-icon.svg",
"decimals": 18,
"tags": []
},
{
"kind": "erc20",
"chain": "eth",
"contract": "0xdac17f958d2ee523a2206206994597c13d831ec7",
"name": "USDT",
"ticker": "USDT",
"icon": "https://url-to-cdn/usdt-icon.svg",
"decimals": 6,
"tags": []
},
{
"kind": "erc20",
"chain": "eth",
"contract": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"name": "USDC",
"ticker": "USDC",
"icon": "https://url-to-cdn/usdc-icon.svg",
"decimals": 6,
"tags": []
}
]
Contains
requestId
- request identifier (string - uuid);data
- array of objects Erc20TokenData.