查询货币余额
POST/transaction/balance
查询指定的合约地址内所有货币的余额。
Request
- application/json
Body
chainId int32required
链 ID
此为平台内部 ID,不是链上或者钱包里的链 ID,可以从查询链列表接口获取
contractAddress stringrequired
合约地址
查询余额的合约地址
Responses
- 200
- 401
- 403
- 404
OK
- application/json
- Schema
- Example (from schema)
- Example
Schema
Array [
]
code int32required
状态码
msg stringrequired
成功或错误提示
description string
错误提示详情
data
object[]
required
货币余额列表
currencyId int32required
货币 ID
可以从查询货币列表接口获取
balance stringrequired
货币余额
注:该字段的值为整型数字,通过 (实际金额 * 10^货币小数位数) 计算而来
currencyAddress stringrequired
货币链上地址
currencySymbol stringrequired
货币符号
precision int32required
货币小数位数
{
"code": 0,
"msg": "string",
"description": "string",
"data": [
{
"currencyId": 0,
"balance": "string",
"currencyAddress": "string",
"currencySymbol": "string",
"precision": 0
}
]
}