4.2.6 根据区块Hash获取监测结果

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

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

3、请求方式:POST

4、consumes:["application/json"]

5、produces:["/"]

6、请求示例:

{
    "blockHash": "0x00000000"
}

7、请求参数:

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

schema属性说明

BlockCertificateByHashReqVO

参数名称 参数说明 in 是否必须 数据类型 schema
blockHash 区块hash:长度限制100 body true string

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 ""