获取指定区块信息和资产交易列表
功能介绍
获取指定区块信息和资产交易列表
URI
GET https://localhost.com//v1/open/block/transactions
参数 | 是否必选 | 参数类型 | 描述 |
|---|---|---|---|
block_id | 是 | String | 区块高度 |
limit | 是 | String | 分页大小限制 |
offset | 是 | String | 条目偏移量 |
tx_type | 是 | String | 区块中交易的类型 |
请求参数
无
响应参数
状态码:200
参数 | 参数类型 | 描述 |
|---|---|---|
block_summary | BlockViewResponse object | 区块摘要信息 |
transaction_list | TransactionListView object | 区块的交易列表信息 |
参数 | 参数类型 | 描述 |
|---|---|---|
block_id | Integer | 区块高度 |
tx_count | Integer | 交易数量 |
body_hash | String | 区块哈希 |
create_time | String | 创建时间 |
参数 | 参数类型 | 描述 |
|---|---|---|
total_count | String | 条目总数量 |
data | Array of AssetTransactionView objects | 资产交易列表 |
参数 | 参数类型 | 描述 |
|---|---|---|
asset_from_addr | String | 资产转移源地址 |
asset_to_addr | String | 资产转移目的地址 |
transaction_time | Integer | 交易时间 |
block_num | Integer | 区块号 |
transaction_hash | String | 交易哈希 |
transaction_type | String | 交易类型 |
asset_id | String | 资产编码 |
状态码:400
参数 | 参数类型 | 描述 |
|---|---|---|
error_code | String | 错误码 |
error_msg | String | 错误描述 |
请求示例
无
响应示例
无
状态码
状态码 | 描述 |
|---|---|
200 | 成功响应 |
400 | 错误响应 |

