Asset Info
GET
/api/v1/public/assetInfoModified at: 8 个月前
Asset Info provides detailed information about supported assets on our platform.
请求参数
Query Params
assetId
integer
optional
The unique numerical identifier for the asset.
Example:
1
assetName
string
optional
The name of the asset.
Example:
USDT
示例代码
Responses
OK(200)
HTTP 状态码: 200
内容格式: JSONapplication/json
Data Schema
error
boolean
required
Indicates whether the API request encountered any errors.
assets
array [object {5}]
optional
An array containing details for each supported currency.
assetId
integer
required
A unique numerical identifier for the currency.
assetName
string
required
The name of the currency.
address
string
required
The on-chain address of the currency
onChainDecimal
integer
required
The number of decimal places used for on-chain calculations.
scaleK
integer
required
Related to the maximum number of the decimal places in the fractional part of the currency. 'scaleK' of '1000000' allows up to 6 decimal places in the fractional part.
Example
All Currency Success
{
"error": false,
"assets": [
{
"assetId": 1,
"assetName": "USDT",
"address": "0x46D8D2F5e81a5257E1C6b63933C49493C0042b26",
"onChainDecimal": 18,
"scaleK": 100000000
},
{
"assetId": 2,
"assetName": "USDC",
"address": "0xC45C896946A5A182aD2Ee3F0806a22bB92abc699",
"onChainDecimal": 6,
"scaleK": 1000000
}
]
}
Modified at 8 个月前