根据块高查询一条蚂蚁区块链的区块信息(仅适用于阿里云国内站)。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String DescribeAntChainBlockV2

系统规定参数。取值:DescribeAntChainBlockV2

AntChainId String 8bd720bde18c4b37b0f4a1c7834db163

区块链ID

Height Long 100

区块高度

RegionId String cn-hangzhou

地域ID,限制cn-hangzhou

ConsortiumId String M8GaMEyX

联盟ID

返回数据

名称 类型 示例值 描述
HttpStatusCode String 200

请求返回码

RequestId String D68D66B6-1964-4073-8714-B49F5EF1AEFC

请求ID

Success Boolean true

结果状态

ResultMessage String OK

结果消息

Code String OK

返回码

Message String OK

请求消息

ResultCode String OK

结果码

Result Object

请求结果

PreviousHash String 2444ef0617e0c6845549dead70f118c5a58f03c04575ecb79e283ab5c34b491d

前一个区块链哈希

Version Long 1

区块版本

RootTxHash String 0000000000000000000000000000000000000000000000000000000000000000

根交易哈希

CreateTime Long 1609223363570

创建时间

TransactionSize Integer 1

交易数

Height Integer 254761

区块高度

BlockHash String 5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7

区块哈希

AntChainId String 8bd720bde18c4b37b0f4a1c7834db163

区块链ID

TransSummaryList Array of TransSummaryList

交易列表

Hash String 076bba1b726b3bcb958cba6fffc03eaa5cbed59320271dcbc0e05648a18a94f2

交易Hash

From String e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b

源地址

TransTypeV10 String CALL_CONTRACT

合约链类型

CreateTime Long 1609223363570

创建时间

TransTypeV6 String ""

存证链类型

Height Long 254761

区块高度

To String e93372533f323b2f12783aa3a586135cf421486439c2cdcde47411b78f9839ec

目的地址

GasUsed Long 4000000

Gas使用值

BlockHash String 5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7

区块Hash

ReferenceCount Integer 0

交易被引用的次数,单位次

Category Integer 0

业务分类,自定义数字,默认为0

Alias String 8bd720bde18c4b37b0f4a1c7834db163

区块链ID

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeAntChainBlockV2
&<公共请求参数>

正常返回示例

XML格式

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeAntChainBlockV2Response>
    <HttpStatusCode>200</HttpStatusCode>
    <RequestId>D68D66B6-1964-4073-8714-B49F5EF1AEFC</RequestId>
    <Success>true</Success>
    <ResultMessage>OK</ResultMessage>
    <Code>OK</Code>
    <Message>OK</Message>
    <ResultCode>OK</ResultCode>
    <Result>
        <PreviousHash>2444ef0617e0c6845549dead70f118c5a58f03c04575ecb79e283ab5c34b491d</PreviousHash>
        <Version>1</Version>
        <RootTxHash>0000000000000000000000000000000000000000000000000000000000000000</RootTxHash>
        <CreateTime>1609223363570</CreateTime>
        <TransactionSize>1</TransactionSize>
        <Height>254761</Height>
        <BlockHash>5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7</BlockHash>
        <AntChainId>8bd720bde18c4b37b0f4a1c7834db163</AntChainId>
        <TransSummaryList>
            <Hash>076bba1b726b3bcb958cba6fffc03eaa5cbed59320271dcbc0e05648a18a94f2</Hash>
            <From>e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b</From>
            <TransTypeV10>CALL_CONTRACT</TransTypeV10>
            <CreateTime>1609223363570</CreateTime>
            <TransTypeV6>""</TransTypeV6>
            <Height>254761</Height>
            <To>e93372533f323b2f12783aa3a586135cf421486439c2cdcde47411b78f9839ec</To>
            <GasUsed>4000000</GasUsed>
            <BlockHash>5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7</BlockHash>
            <ReferenceCount>0</ReferenceCount>
            <Category>0</Category>
            <Alias>8bd720bde18c4b37b0f4a1c7834db163</Alias>
        </TransSummaryList>
    </Result>
</DescribeAntChainBlockV2Response>

JSON格式

HTTP/1.1 200 OK
Content-Type:application/json

{
  "HttpStatusCode" : "200",
  "RequestId" : "D68D66B6-1964-4073-8714-B49F5EF1AEFC",
  "Success" : true,
  "ResultMessage" : "OK",
  "Code" : "OK",
  "Message" : "OK",
  "ResultCode" : "OK",
  "Result" : {
    "PreviousHash" : "2444ef0617e0c6845549dead70f118c5a58f03c04575ecb79e283ab5c34b491d",
    "Version" : 1,
    "RootTxHash" : "0000000000000000000000000000000000000000000000000000000000000000",
    "CreateTime" : 1609223363570,
    "TransactionSize" : 1,
    "Height" : 254761,
    "BlockHash" : "5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7",
    "AntChainId" : "8bd720bde18c4b37b0f4a1c7834db163",
    "TransSummaryList" : [ {
      "Hash" : "076bba1b726b3bcb958cba6fffc03eaa5cbed59320271dcbc0e05648a18a94f2",
      "From" : "e7d3e769f3f593dadcb8634cc5b09fc90dd3a61c4a06a79cb0923662fe6fae6b",
      "TransTypeV10" : "CALL_CONTRACT",
      "CreateTime" : 1609223363570,
      "TransTypeV6" : "\"\"",
      "Height" : 254761,
      "To" : "e93372533f323b2f12783aa3a586135cf421486439c2cdcde47411b78f9839ec",
      "GasUsed" : 4000000,
      "BlockHash" : "5abf96debc87f1b64dcbaf4fa57fd46f2a06acdb5de0ba91ef9718d81aebafc7",
      "ReferenceCount" : 0,
      "Category" : 0,
      "Alias" : "8bd720bde18c4b37b0f4a1c7834db163"
    } ]
  }
}

错误码

访问错误中心查看更多错误码。