查询链上交易信息
GET/transaction/info
通过交易哈希查询链上交易信息。
Request
Query Parameters
chainId int32required
链ID
此为平台内部 ID,不是链上或者钱包里的链 ID,可以从查询链列表接口获取
transactionHash 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
isSuccessful booleanrequired
交易是否成功
blockTimestamp int64required
交易时间
注:Unix 时间戳,单位:秒
transactionDetails
object[]
交易详情列表
from stringrequired
付款地址
to stringrequired
收款地址
amount stringrequired
交易金额
注:该字段的值为整型数字,通过 (实际金额 * 10^货币小数位数) 计算而来
currency
object
required
交易货币详情
currencyId int32
货币 ID
可以从查询货币列表接口获取
currencyAddress stringrequired
货币链上地址
currencySymbol string
货币符号
precision int32
货币小数位数
{
"code": 0,
"msg": "string",
"description": "string",
"data": {
"isSuccessful": true,
"blockTimestamp": 0,
"transactionDetails": [
{
"from": "string",
"to": "string",
"amount": "string",
"currency": {
"currencyId": 0,
"currencyAddress": "string",
"currencySymbol": "string",
"precision": 0
}
}
]
}
}
{
"code": 200,
"msg": "success",
"data": {
"isSuccessful": true,
"blockTimestamp": 1704185589,
"transactionDetails": [
{
"from": "TSBJBk1Nfc7sxYp59bjTtLEV8WKxZcZy2L",
"to": "TVqxgknMr2EZbV6ksV3DZpE7Appt3Q3bji",
"amount": "1000000",
"currency": {
"currencyId": 106,
"currencyAddress": "TXLAQ63Xg1NAzckPwKHvzw7CSEmLMEqcdj",
"currencySymbol": "USDT",
"precision": 6
}
}
]
}
}
Unauthorized
Forbidden
Not Found
Loading...