/wallet/getassetissuebyid¶
按 token id 查询 TRC10(推荐方式,token id 全局唯一)。
- 源码:
framework/src/main/java/org/tron/core/services/http/GetAssetIssueByIdServlet.java - Method:
GET/POST - 支持固化接口:
/walletsolidity/getassetissuebyid
请求参数¶
| 字段 | 类型 | 必填 | 说明 |
|---|---|---|---|
value |
string | 是 | token id(数字字符串,例如 "1000001") |
visible |
bool | 否 | 地址、文本字段格式 |
示例:
curl --request POST \
--url https://nile.trongrid.io/wallet/getassetissuebyid \
--header 'accept: application/json' \
--header 'content-type: application/json' \
--data '
{
"value": "1005416"
}
'
响应¶
返回 protocol.AssetIssueContract,字段同 /wallet/createassetissue 请求体。
响应示例(Nile 上 token id 1005416,name 54524e 解码为 TRN):
{
"owner_address": "41088a2bfcb1c7271029fd69a66859d55560895884",
"name": "54524e",
"abbr": "544e",
"total_supply": 100000000000000000,
"frozen_supply": [
{ "frozen_amount": 1, "frozen_days": 1 }
],
"trx_num": 1,
"precision": 6,
"num": 1,
"start_time": 1737690890434,
"end_time": 2053134849000,
"vote_score": 1,
"description": "7465737420747263313020636f696e20666f72206e696c65",
"url": "68747470733a2f2f6e696c6565782e696f2f",
"free_asset_net_limit": 10000,
"public_free_asset_net_limit": 20000,
"id": "1005416"
}
不存在返回 {}。
异常响应¶
| 触发条件 | 响应 |
|---|---|
请求体超过 node.maxMessageSize(POST) |
{"Error": "class java.lang.Exception : body size is too big, the limit is <N>"} |
| 请求体不是合法 JSON(POST) | {"Error": "class com.alibaba.fastjson.JSONException : <解析器信息>"} |
| 其他异常 | {"Error": "<exceptionClass> : <message>"} |