4.2.7 根据区块高度获取监测结果

1、接口描述:据区块高度获取区块监测结果

2、接口地址:/api/openapi/v1/chain/block/result/blockheight

3、请求方式:POST

4、consumes:["application/json"]

5、produces:["/"]

6、请求示例:

{
    "blockHeight": 100000
}

7、请求参数:

参数名称 参数说明 in 必填 数据类型 schema
accessKey accessKey header true string
blockAttestationVO blockAttestationVO body true BlockCertificateByHeightReqVO BlockCertificateByHeightReqVO

schema属性说明

BlockCertificateByHeightReqVO

参数名称 参数说明 in 是否必须 数据类型 schema
blockHeigh 区块高度 body true number

8、响应示例

{
    "code": 0,
    "data": {
        "certificateState": 1,
        "certificateTxHash": "0x00000000",
        "certificateTxTime": "2023-05-05 11:11:11"
    },
    "message": "MSG_00_0000"
}

9、响应参数:

参数名称 参数说明 类型 schema
code code integer(int32) integer(int32)
data data BlockCertificateRespVO BlockCertificateRespVO
message message string

schema属性说明

BlockCertificateRespVO

参数名称 参数说明 类型 schema
certificateState 监测状态 1:待处理 2:处理中 3:处理成功 4:处理失败 integer(int32)
certificateTxHash 监测交易hash string
certificateTxTime 监测时间 string

results matching ""

    No results matching ""

    results matching ""

      No results matching ""