4.2.5 批量提交交易信息
1、接口描述:批量提交区块内交易信息
2、接口地址:/api/openapi/v1/chain/tx/batchSave
3、请求方式:POST
4、consumes:["application/json"]
5、produces:["/"]
6、请求示例:
[
{
"blockHeight": 1000,
"miner": "0x0000000",
"txDetail": "",
"txHash": "0x0000000",
"txTime": "2023-05-05 11:11:11"
}
]
7、请求参数:
参数名称 | 参数说明 | in | 必填 | 数据类型 | schema |
accessKey | accessKey | header | true | string | |
blockInfoReqVOList | blockInfoReqVOList | body | true | array | BatchTxInfoReqVO |
schema属性说明
BatchTxInfoReqVO
参数名称 | 参数说明 | in | 是否必须 | 数据类型 | schema |
blockHeight | 区块高度 | body | true | number | |
miner | 交易签名者:长度限制100 | body | true | string | |
txDetail | 交易详情:长度限制5000 | body | false | string | |
txHash | 交易hash:长度限制100 | body | true | string | |
txTime | 交易时间 | body | true | string |
8、响应示例
{
"code": 0,
"data": {},
"message": "MSG_00_0000"
}
9、响应参数:
参数名称 | 参数说明 | 类型 | schema |
code | code | integer(int32) | integer(int32) |
data | data | object | |
message | message | string |